| OLD | NEW |
| 1 {{- sidenav: the sidenav bar for either apps or extensions -}} | 1 {{- This is the shared template for Extension/App samples pages. |
| 2 {{- filter_list: the list of APIs that show up in the filter box -}} | 2 - |filterList| The list of APIs that show up in the filter box. |
| 3 {{- samples_list: the list of samples shown on the page -}} | 3 - |platform| The platform. |
| 4 {{- samples_url: the source URL of the samples -}} | 4 - |platformTitle| The title of the platform ("Extensions" or "Apps"). |
| 5 <!DOCTYPE html> | 5 - |samplesList| The list of samples shown on the page. |
| 6 <html> | 6 - |samplesTitle| The title of the samples ("Sample Extensions" or "Apps"). |
| 7 <head> | 7 - |samplesUrl| The source URL of the samples. |
| 8 {{+partials.header_head/}} | 8 - |sidenav| The sidenav items. |
| 9 <link href="{{static}}/css/samples.css" rel="stylesheet" type="text/css"> | 9 -}} |
| 10 <title>Sample {{title}} - Google Chrome {{title}}</title> | 10 {{+content:partials.site |
| 11 </head> | 11 platform:platform |
| 12 <body> | 12 platformTitle:platformTitle |
| 13 {{+partials.header_body platform:platform title:title/}} | 13 sidenav:sidenav}} |
| 14 <div id="gc-container"> | 14 <h1>Sample {{platformTitle}}</h1> |
| 15 {{+partials.sidenav items:sidenav/}} | 15 <div id="samples-controls"> |
| 16 <div id="gc-pagecontent"> | 16 <table class="controlbox"> |
| 17 <h1 class="page_title">Sample {{title}}</h1> | 17 <tr> |
| 18 <div id="controls"> | 18 <td class="label">Filter by keyword:</td> |
| 19 <table class="controlbox"> | 19 <td><input autofocus type="search" id="search_input" placeholder="Type to
search"></td> |
| 20 <tr> | 20 </tr> |
| 21 <td class="label">Filter by keyword:</td> | 21 <tr> |
| 22 <td><input autofocus type="search" id="search_input" placeholder="
Type to search"></td> | 22 <td class="label">Filter by API:</td> |
| 23 </tr> | 23 <td> |
| 24 <tr> | 24 <div id="api_filter_items"> |
| 25 <td class="label">Filter by API:</td> | 25 {{#filter:filterList.all +partials.filter_item item:filter /}}<br> |
| 26 <td> | |
| 27 <div id="api_filter_items"> | |
| 28 {{#filter:filter_list.all +partials.filter_item item:filter/}
}<br> | |
| 29 </div> | |
| 30 </td> | |
| 31 </tr> | |
| 32 </table> | |
| 33 </div> | 26 </div> |
| 34 {{?samples_list}} | 27 </td> |
| 35 {{#s:samples_list +partials.sample_item sample:s/}} | 28 </tr> |
| 36 {{:samples_list}} | 29 </table> |
| 37 <p>There was a problem fetching the sample {{title}}, but they may be | 30 </div> |
| 38 available directly from the <a href="{{samples_url}}">source</a>.</p> | 31 {{?samplesList}} |
| 39 {{/samples_list}} | 32 {{#s:samplesList +partials.sample_item sample:s /}} |
| 40 </div> | 33 {{:samplesList}} |
| 41 </div> | 34 <p>There was a problem fetching the sample {{platformTitle}}, but they may be |
| 42 </body> | 35 available directly from the <a href="{{samplesUrl}}">source</a>.</p> |
| 43 {{+partials.footer/}} | 36 {{/samplesList}} |
| 44 <script src="{{static}}/js/samples.js" type="text/javascript"></script> | 37 <script src="{{static}}/js/samples.js" type="text/javascript"></script> |
| 45 </html> | 38 {{/partials.site}} |
| OLD | NEW |