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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revisions, Offline/Online Access (bypassed-hooks) Created 7 years, 7 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/templates/private/intro_table.html
diff --git a/chrome/common/extensions/docs/templates/private/intro_table.html b/chrome/common/extensions/docs/templates/private/intro_table.html
new file mode 100644
index 0000000000000000000000000000000000000000..76724fd501d990f7ccf14c51ae7665fe1f853eb3
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/private/intro_table.html
@@ -0,0 +1,65 @@
+<table class="intro">
+ <tr>
+ <th scope="col"></th>
+ <th scope="col"></th>
+ </tr>
+ <tr>
+ <td>
+ <strong>Description:</strong>
+ </td>
+ <td>
+ {{?api.description}}
+ {{{api.description}}}
+ {{:}}
+ The <code>chrome.{{api.name}}</code> API
+ {{/api.description}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Availability:</strong>
+ </td>
+ <td>
+ {{?api.availability}}
+ Chrome {{api.availability}}
+ {{:api.availability}}
+ {{?api.experimental}}
+ Experimental only (see <a href="experimental.html#using">How to use experimental APIs</a>)
+ {{:api.experimental}}
+ Available.
+ {{/api.experimental}}
+ {{/api.availability}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Permissions:</strong>
+ </td>
+ <td>
+ {{?api.permissions_}}
+ {{#api.permissions_}}
+ {{?permission}}<code>{{permission}}</code>{{/permission}}
+ {{?extra}}{{{extra}}}{{/extra}}
+ <br>
+ {{/api.permissions_}}
+ {{:api.permissions_}}
+ None
+ {{/api.permissions_}}
+ </td>
+ </tr>
+ {{?api.learn_more}}
+ <tr>
+ <td>
+ <strong>Learn more:</strong>
+ </td>
+ <td>
+ {{#api.learn_more}}
+ {{?prefix}}{{prefix}}{{/prefix}}
+ <a href='{{href}}'>{{content}}</a>
+ {{?suffix}}{{suffix}}{{/suffix}}
+ <br>
+ {{/api.learn_more}}
+ </td>
+ </tr>
+ {{/}}
+</table>

Powered by Google App Engine
This is Rietveld 408576698