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

Unified Diff: chrome/common/extensions/docs/server2/templates/private/samples.html

Issue 10825067: Extensions Docs Server: Apps samples page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Samples on API pages Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/templates/private/samples.html
diff --git a/chrome/common/extensions/docs/server2/templates/public/extensions/samples.html b/chrome/common/extensions/docs/server2/templates/private/samples.html
similarity index 56%
copy from chrome/common/extensions/docs/server2/templates/public/extensions/samples.html
copy to chrome/common/extensions/docs/server2/templates/private/samples.html
index e02066cbfee2c5aba238f90a56d8206736509f34..5bdd2c33b8273b5313e49e002c5df9126ce33d70 100644
--- a/chrome/common/extensions/docs/server2/templates/public/extensions/samples.html
+++ b/chrome/common/extensions/docs/server2/templates/private/samples.html
@@ -7,9 +7,13 @@
<body>
{{+partials.header_body}}
<div id="gc-container">
+ {{?is_apps}}
+ {{+partials.apps_sidenav}}
+ {{:is_apps}}
{{+partials.extensions_sidenav}}
+ {{/is_apps}}
<div id="gc-pagecontent">
- <h1 class="page_title">Samples</h1>
+ <h1 class="page_title">Sample {{?is_apps}}Apps{{:}}Extensions{{/}}</h1>
<div id="controls">
<table class="controlbox">
<tr>
@@ -20,15 +24,46 @@
<td class="label">Filter by API:</td>
<td>
<div id="api_filter_items">
+ {{?is_apps}}
+ {{#api_list.apps.chrome}}
+ <span><a href="javascript:void(0)">{{name}}</a>{{^last}} | {{/}}</span>
+ {{/}}
+ {{:is_apps}}
{{#api_list.extensions.chrome}}
<span><a href="javascript:void(0)">{{name}}</a>{{^last}} | {{/}}</span>
not at google - send to devlin 2012/08/09 07:52:36 pull repeated <span>...</span> into a partial?
cduvall 2012/08/09 19:20:08 Done.
{{/}}
+ {{/is_apps}}
</div>
</td>
</tr>
</table>
</div>
- {{#samples.samples}}
+ {{?is_apps}}
+ {{#samples.apps}}
+ <div class="sample" tags="{{#api_calls}}{{name}} {{/}}">
not at google - send to devlin 2012/08/09 07:52:36 I'm sure this can be pulled into a partial with ap
cduvall 2012/08/09 19:20:08 Done.
+ <img class="icon" src="{{icon}}">
+ <h2><a href="{{github_path}}">{{name}}</a></h2>
+ {{description}}
+ <div>
+ <span class="label">Calls:</span>
+ <ul>
+ {{#api_calls}}
+ <li><code><a href="{{link}}">{{name}}</a></code></li>
+ {{/}}
+ </ul>
+ </div>
+ <div>
+ <span class="label">Source Files:</span>
+ <ul>
+ {{#files}}
+ <li><code><a href="{{github_path}}/{{@}}">{{@}}</a></code></li>
+ {{/}}
+ </ul>
+ </div>
+ </div>
+ {{/samples.apps}}
+ {{:is_apps}}
+ {{#samples.extensions}}
<div class="sample" tags="{{#api_calls}}{{name}} {{/}}">
<img class="icon" src="{{icon}}">
<h2><a href="{{path}}.zip">{{name}}</a></h2>
@@ -50,10 +85,11 @@
</ul>
</div>
</div>
- {{/samples.samples}}
+ {{/samples.extensions}}
+ {{/is_apps}}
</div>
</div>
</body>
- {{+partials.footer}}
+ {{+partials.footer is_apps:is_apps}}
<script src="{{static}}/js/samples.js" type="text/javascript"></script>
</html>

Powered by Google App Engine
This is Rietveld 408576698