Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / private / samples.html
blob346d83a75f8e0819c2337535c78457f3babfadbd
1 {{- This is the shared template for Extension/App samples pages.
2 - |filterList| The list of APIs that show up in the filter box.
3 - |platform| The platform.
4 - |platformTitle| The title of the platform ("Extensions" or "Apps").
5 - |samplesList| The list of samples shown on the page.
6 - |samplesTitle| The title of the samples ("Sample Extensions" or "Apps").
7 - |samplesUrl| The source URL of the samples.
8 - |sidenav| The sidenav items.
9 -}}
10 {{+content:partials.site
11 platform:platform
12 platformTitle:platformTitle
13 sidenav:sidenav}}
14 <h1>Sample {{platformTitle}}</h1>
15 <div id="samples-controls">
16 <table class="controlbox">
17 <tr>
18 <td class="label">Filter by keyword:</td>
19 <td><input autofocus type="search" id="search_input" placeholder="Type to search"></td>
20 </tr>
21 <tr>
22 <td class="label">Filter by API:</td>
23 <td>
24 <div id="api_filter_items">
25 {{#filter:filterList.all +partials.filter_item item:filter /}}<br>
26 </div>
27 </td>
28 </tr>
29 </table>
30 </div>
31 {{?samplesList}}
32 {{#s:samplesList +partials.sample_item sample:s /}}
33 {{:samplesList}}
34 <p>There was a problem fetching the sample {{platformTitle}}, but they may be
35 available directly from the <a href="{{samplesUrl}}">source</a>.</p>
36 {{/samplesList}}
37 <script src="{{static}}/js/samples.js" type="text/javascript"></script>
38 {{/partials.site}}