| Index: chrome/common/extensions/docs/templates/private/samples.html
|
| diff --git a/chrome/common/extensions/docs/templates/private/samples.html b/chrome/common/extensions/docs/templates/private/samples.html
|
| index 1d0769ad8f685181b7dcf0f28893de1e8bedeb9c..346d83a75f8e0819c2337535c78457f3babfadbd 100644
|
| --- a/chrome/common/extensions/docs/templates/private/samples.html
|
| +++ b/chrome/common/extensions/docs/templates/private/samples.html
|
| @@ -1,45 +1,38 @@
|
| -{{- sidenav: the sidenav bar for either apps or extensions -}}
|
| -{{- filter_list: the list of APIs that show up in the filter box -}}
|
| -{{- samples_list: the list of samples shown on the page -}}
|
| -{{- samples_url: the source URL of the samples -}}
|
| -<!DOCTYPE html>
|
| -<html>
|
| - <head>
|
| - {{+partials.header_head/}}
|
| - <link href="{{static}}/css/samples.css" rel="stylesheet" type="text/css">
|
| - <title>Sample {{title}} - Google Chrome {{title}}</title>
|
| - </head>
|
| - <body>
|
| - {{+partials.header_body platform:platform title:title/}}
|
| - <div id="gc-container">
|
| - {{+partials.sidenav items:sidenav/}}
|
| - <div id="gc-pagecontent">
|
| - <h1 class="page_title">Sample {{title}}</h1>
|
| - <div id="controls">
|
| - <table class="controlbox">
|
| - <tr>
|
| - <td class="label">Filter by keyword:</td>
|
| - <td><input autofocus type="search" id="search_input" placeholder="Type to search"></td>
|
| - </tr>
|
| - <tr>
|
| - <td class="label">Filter by API:</td>
|
| - <td>
|
| - <div id="api_filter_items">
|
| - {{#filter:filter_list.all +partials.filter_item item:filter/}}<br>
|
| - </div>
|
| - </td>
|
| - </tr>
|
| - </table>
|
| +{{- This is the shared template for Extension/App samples pages.
|
| + - |filterList| The list of APIs that show up in the filter box.
|
| + - |platform| The platform.
|
| + - |platformTitle| The title of the platform ("Extensions" or "Apps").
|
| + - |samplesList| The list of samples shown on the page.
|
| + - |samplesTitle| The title of the samples ("Sample Extensions" or "Apps").
|
| + - |samplesUrl| The source URL of the samples.
|
| + - |sidenav| The sidenav items.
|
| + -}}
|
| +{{+content:partials.site
|
| + platform:platform
|
| + platformTitle:platformTitle
|
| + sidenav:sidenav}}
|
| +<h1>Sample {{platformTitle}}</h1>
|
| +<div id="samples-controls">
|
| + <table class="controlbox">
|
| + <tr>
|
| + <td class="label">Filter by keyword:</td>
|
| + <td><input autofocus type="search" id="search_input" placeholder="Type to search"></td>
|
| + </tr>
|
| + <tr>
|
| + <td class="label">Filter by API:</td>
|
| + <td>
|
| + <div id="api_filter_items">
|
| + {{#filter:filterList.all +partials.filter_item item:filter /}}<br>
|
| </div>
|
| - {{?samples_list}}
|
| - {{#s:samples_list +partials.sample_item sample:s/}}
|
| - {{:samples_list}}
|
| - <p>There was a problem fetching the sample {{title}}, but they may be
|
| - available directly from the <a href="{{samples_url}}">source</a>.</p>
|
| - {{/samples_list}}
|
| - </div>
|
| - </div>
|
| - </body>
|
| - {{+partials.footer/}}
|
| - <script src="{{static}}/js/samples.js" type="text/javascript"></script>
|
| -</html>
|
| + </td>
|
| + </tr>
|
| + </table>
|
| +</div>
|
| +{{?samplesList}}
|
| + {{#s:samplesList +partials.sample_item sample:s /}}
|
| +{{:samplesList}}
|
| + <p>There was a problem fetching the sample {{platformTitle}}, but they may be
|
| + available directly from the <a href="{{samplesUrl}}">source</a>.</p>
|
| +{{/samplesList}}
|
| +<script src="{{static}}/js/samples.js" type="text/javascript"></script>
|
| +{{/partials.site}}
|
|
|