aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-05 12:57:53 +0800
committerByron Jones <glob@mozilla.com>2015-03-05 12:57:53 +0800
commitc1fa559e16cbaa5e7a3133f7ea0b086ea00ba650 (patch)
tree063acc63c823e66b4ab8cd04802139548905a1ee /template/en/default/global
parentdbc7a21e1b96a9c57b6a53af78a4d467c9a7672d (diff)
downloadbugs-c1fa559e16cbaa5e7a3133f7ea0b086ea00ba650.tar
bugs-c1fa559e16cbaa5e7a3133f7ea0b086ea00ba650.tar.gz
bugs-c1fa559e16cbaa5e7a3133f7ea0b086ea00ba650.tar.bz2
bugs-c1fa559e16cbaa5e7a3133f7ea0b086ea00ba650.tar.xz
bugs-c1fa559e16cbaa5e7a3133f7ea0b086ea00ba650.zip
Bug 1128853: Bugzilla shouldn't try to write API tokens into the shadow DB
r=dkl,a=glob
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index a6548f999..bf952ad96 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -20,6 +20,7 @@
# style_urls: list. List of URLs to CSS style sheets.
# message: string. A message to display to the user. May contain HTML.
# atomlink: Atom link URL, May contain HTML
+ # generate_api_token: generate a token which can be used to make authenticated webservice calls
#%]
[% IF message %]
@@ -32,6 +33,7 @@
onload = ""
style_urls = []
yui = []
+ generate_api_token = 0
%]
[% SET yui_css = {
@@ -175,7 +177,7 @@
version_required:
"You must select a Version for this [% terms.bug %]."
}
- [% IF javascript_urls.containsany(['js/bug.js', 'js/field.js', 'js/comment-tagging.js']) %]
+ [% IF generate_api_token %]
, api_token: '[% get_api_token FILTER js FILTER html %]'
[% END %]
};