summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-10-08 14:28:46 +0200
committerDylan William Hardison <dylan@hardison.net>2015-10-08 14:29:01 +0200
commitd6f47aa5f07a11a8771ce95f156b5394e67285a8 (patch)
treeaffa3ce076aacf5a7813e6e10415831d224b18f9 /template/en/default/global
parent4ce3037df61ddee7eb20e744853d0b3e3990dcac (diff)
downloadbugzilla-d6f47aa5f07a11a8771ce95f156b5394e67285a8.tar.gz
bugzilla-d6f47aa5f07a11a8771ce95f156b5394e67285a8.tar.xz
Bug 1200765 - Make login UX mobile friendly to assist mobile authentication workflow
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 3f70b9453..23634ed43 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -37,6 +37,7 @@
# atomlink: Atom link URL, May contain HTML
# generate_api_token: generate a token which can be used to make authenticated webservice calls
# no_body: if true the body element will not be generated
+ # allow_mobile: allow special CSS and viewport for detected mobile useragents
#%]
[% IF message %]
@@ -103,6 +104,10 @@
[%# Add our required jQuery plugins %]
[% jquery.push("cookie", "devbridgeAutocomplete") %]
+[% IF allow_mobile && is_mobile_browser %]
+ [% style_urls.push("skins/standard/mobile.css") %]
+[% END %]
+
[%# We should be able to set the default value of the header variable
# to the value of the title variable using the DEFAULT directive,
# but that doesn't work if a caller sets header to the empty string
@@ -260,6 +265,9 @@
[%# Required for the 'Autodiscovery' feature in Firefox 2 and IE 7. %]
<link rel="search" type="application/opensearchdescription+xml"
title="[% terms.BugzillaTitle %]" href="./search_plugin.cgi">
+ [% IF allow_mobile && is_mobile_browser %]
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ [% END %]
[% Hook.process("additional_header") %]
</head>