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

Side by Side Diff: chrome/common/extensions/docs/static/samples.html

Issue 5989011: Add hotlinks to individual samples in extension samples directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/common/extensions/docs/build
Patch Set: Display tweaks Created 9 years, 11 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
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="stylesheet" href="css/samples.css" /> 1 <link rel="stylesheet" href="css/samples.css" />
2 <script jscontent="search_data"></script> 2 <script jscontent="search_data"></script>
3 <script src="js/sample_search.js"></script> 3 <script src="js/sample_search.js"></script>
4 4
5 <script type="text/prerenderjs"> 5 <script type="text/prerenderjs">
6 /** 6 /**
7 * The following code is executed before the jstemplate in this file is 7 * The following code is executed before the jstemplate in this file is
8 * rendered, meaning it can modify template data by changing the pageData 8 * rendered, meaning it can modify template data by changing the pageData
9 * window variable. See api_page_generator.js for more information. 9 * window variable. See api_page_generator.js for more information.
10 * 10 *
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 <a href="javascript:void(0);" jsvalues="onclick:'setFilter(\'' + $this + '\', this)'" jscontent="$this"></a><span jsdisplay="$index != $total - 1">, </s pan> 76 <a href="javascript:void(0);" jsvalues="onclick:'setFilter(\'' + $this + '\', this)'" jscontent="$this"></a><span jsdisplay="$index != $total - 1">, </s pan>
77 </span> 77 </span>
78 </span> 78 </span>
79 </div> 79 </div>
80 </div> 80 </div>
81 81
82 <div jsselect="samples" jsvalues="id:id" class="sample"> 82 <div jsselect="samples" jsvalues="id:id" class="sample">
83 <img jsdisplay="icon != null" class="icon" jsvalues="src:path + icon" /> 83 <img jsdisplay="icon != null" class="icon" jsvalues="src:path + icon" />
84 <img jsdisplay="icon == null" class="icon" src="images/sample-default-icon.png " /> 84 <img jsdisplay="icon == null" class="icon" src="images/sample-default-icon.png " />
85 <h2 class="name"> 85 <h2 class="name">
86 <a jscontent="name" jsvalues="href:'http://src.chromium.org/viewvc/chrome/tr unk/src/chrome/common/extensions/docs/' + path" target="_blank"></a> 86 <a jscontent="name" jsvalues="href:'#'+$this.id"></a>
87 </h2> 87 </h2>
88 <p jsdisplay="features.length > 0" class="metadata features" jseval="$total=fe atures.length">Uses 88 <p jsdisplay="features.length > 0" class="metadata features" jseval="$total=fe atures.length">Uses
89 <span jsselect="features"> 89 <span jsselect="features">
90 <strong jscontent="$this"></strong><span jsdisplay="$index < $total - 2 && $total > 2">, </span> 90 <strong jscontent="$this"></strong><span jsdisplay="$index < $total - 2 && $total > 2">, </span>
91 <span jsdisplay="$index == $total - 2 && $total > 1" > and</span> 91 <span jsdisplay="$index == $total - 2 && $total > 1" > and</span>
92 </span> 92 </span>
93 </p> 93 </p>
94 <p jscontent="description"></p> 94 <p jscontent="description"></p>
95 <div jsdisplay="api_calls.length > 0" class="apicalls"><strong>Calls:</strong> 95 <div jsdisplay="api_calls.length > 0" class="apicalls"><strong>Calls:</strong>
96 <ul> 96 <ul>
97 <li jsselect="api_calls"> 97 <li jsselect="api_calls">
98 <code><a jsvalues="href:$this.url" jscontent="$this.call"></a></code> 98 <code><a jsvalues="href:$this.url" jscontent="$this.call"></a></code>
99 </li> 99 </li>
100 </ul> 100 </ul>
101 </div> 101 </div>
102 <div jsdisplay="source_files.length > 0" class="sourcefiles"><strong>Source fi les:</strong> 102 <div jsdisplay="source_files.length > 0" class="sourcefiles"><strong>Source fi les:</strong>
103 <ul> 103 <ul>
104 <li jsselect="source_files"> 104 <li jsselect="source_files">
105 <code><a jsvalues="href:$this.url" jscontent="$this.file" target="_blank "></a></code> 105 <code><a jsvalues="href:$this.url" jscontent="$this.file" target="_blank "></a></code>
106 </li> 106 </li>
107 </ul> 107 </ul>
108 </div> 108 </div>
109 <div><a jsvalues="href:$this.zip_path">Download .zip</a></li></div> 109 <div>
110 <a jsvalues="href:'http://src.chromium.org/viewvc/chrome/trunk/src/chrome/co mmon/extensions/docs/' + path" target="_blank">Browse source</a>
111 - <a jsvalues="href:$this.zip_path">Download source</a>
112 </div>
110 </div> 113 </div>
111 114
112 <div id="noresults" style="display:none"> 115 <div id="noresults" style="display:none">
113 Sorry, no results were found. 116 Sorry, no results were found.
114 </div> 117 </div>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698