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