summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/template
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 18:32:02 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 18:32:02 +0000
commit96b1dec333be9ee3cac55e97addee8332eed93de (patch)
treefc31d2d6d3fa3d6443f9fb311d5ee91531c20986 /chrome/common/extensions/docs/template
parent26d4accf41d14c363842af2422688246b07aba23 (diff)
downloadchromium_src-96b1dec333be9ee3cac55e97addee8332eed93de.zip
chromium_src-96b1dec333be9ee3cac55e97addee8332eed93de.tar.gz
chromium_src-96b1dec333be9ee3cac55e97addee8332eed93de.tar.bz2
Add a warning when viewing unofficial or non-stable docs.
Here is what it looks like: http://imgur.com/wT1N3,SeZMs#0 http://imgur.com/wT1N3,SeZMs#1 BUG=110992 Review URL: https://chromiumcodereview.appspot.com/9212050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/template')
-rw-r--r--chrome/common/extensions/docs/template/api_template.html22
1 files changed, 19 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/template/api_template.html b/chrome/common/extensions/docs/template/api_template.html
index 6a3c43f..8fa2e44 100644
--- a/chrome/common/extensions/docs/template/api_template.html
+++ b/chrome/common/extensions/docs/template/api_template.html
@@ -1,7 +1,23 @@
+ <div id="devModeWarning" class="displayModeWarning">
+ You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files.
+ </div>
+ <div id="branchWarning" class="displayModeWarning">
+ <span>WARNING: This is the <span id="branchName">BETA</span> documentation.
+ It may not work with the stable release of Chrome.</span>
+ <select id='branchChooser'>
+ <option>Choose a different version...
+ <option value="">Stable
+ <option value="beta">Beta
+ <option value="dev">Dev
+ <option value="trunk">Trunk
+ </select>
+ </div>
+ <div id="unofficialWarning" class="displayModeWarning">
+ <span>WARNING: This is unofficial documentation. It may not work with the
+ current release of Chrome.</span>
+ <button id="goToOfficialDocs">Go to the official docs</button>
+ </div>
<div id="gc-container" class="labs">
- <div id="devModeWarning">
- You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files.
- </div>
<!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION -->
<!-- In particular, sub-templates that recurse, must be used by allowing
jstemplate to make a copy of the template in this section which