Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chrome/common/extensions/docs/server2/templates/public/samples.html

Issue 10809062: Extensions Docs Server: Samples search and icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 {{+partials.header_head}} 4 {{+partials.header_head}}
5 <link href="{{static}}/css/samples.css" rel="stylesheet" type="text/css">
5 </head> 6 </head>
6 <body> 7 <body>
7 {{+partials.header_body}} 8 {{+partials.header_body}}
8 <div id="gc-container"> 9 <div id="gc-container">
9 {{+partials.sidenav}} 10 {{+partials.sidenav}}
10 <div id="gc-pagecontent"> 11 <div id="gc-pagecontent">
11 <h1>Samples</h1> 12 <h1 class="page_title">Samples</h1>
13 <div id="controls">
14 <div class="controlbox">
15 <strong>Filter by keyword:</strong>
16 <input autofocus="" type="search" id="search_input" placeholder="Typ e to search" onsearch="filterSamples();" onkeyup="filterSamples();">
17 </div>
18 <div class="controlbox">
19 <strong>Filter by API:</strong>
20 {{#api_list.chrome}}
21 <span><a href="javascript:void(0);" onclick="setFilter('chrome.{ {@}}')">chrome.{{@}}</a> </span>
22 {{/}}
23 </div>
24 </div>
12 {{#samples.samples}} 25 {{#samples.samples}}
26 <div class="sample" tags="{{#api_calls}}{{name}} {{/}}">
27 <img class="icon" src="{{?icon}}{{path}}/{{icon}}{{:}}{{static}}/image s/sample-default-icon.png{{/}}">
13 <h2><a href="{{path}}.zip">{{name}}</a></h2> 28 <h2><a href="{{path}}.zip">{{name}}</a></h2>
14 {{description}} 29 {{description}}
15 <div> 30 <div>
16 <strong>Calls:</strong> 31 <strong>Calls:</strong>
17 <ul> 32 <ul>
18 {{#api_calls}} 33 {{#api_calls}}
19 <li><code><a href="{{link}}">{{name}}</a></code></li> 34 <li><code><a href="{{link}}">{{name}}</a></code></li>
20 {{/}} 35 {{/}}
21 </ul> 36 </ul>
22 </div> 37 </div>
23 <div> 38 <div>
24 <strong>Source Files:</strong> 39 <strong>Source Files:</strong>
25 <ul> 40 <ul>
26 {{#files}} 41 {{#files}}
27 <li><code><a href="{{path}}/{{@}}">{{@}}</a></code></li> 42 <li><code><a href="{{path}}/{{@}}">{{@}}</a></code></li>
28 {{/}} 43 {{/}}
29 </ul> 44 </ul>
30 </div> 45 </div>
46 </div>
31 {{/samples.samples}} 47 {{/samples.samples}}
32 </div> 48 </div>
33 </div> 49 </div>
34 </body> 50 </body>
35 {{+partials.footer}} 51 {{+partials.footer}}
52 <script src="{{static}}/js/sample_search.js" type="text/javascript"></script>
36 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698