summaryrefslogtreecommitdiffstats
path: root/template/en/default/account
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-08-12 16:00:08 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-08-12 16:00:08 +0200
commitb109a7d8394fc7e50b9a065b5b7ff58e64c8ea45 (patch)
treeb22ccb452e171c6d64b3686b5418f6a20ac95159 /template/en/default/account
parent56c61ae8ff0496a6fb9ff69bdc360dc1db5dfd27 (diff)
downloadbugzilla-b109a7d8394fc7e50b9a065b5b7ff58e64c8ea45.tar.gz
bugzilla-b109a7d8394fc7e50b9a065b5b7ff58e64c8ea45.tar.xz
Bug 1192854: change tabs on user preferences from horizontal to vertical layout
Diffstat (limited to 'template/en/default/account')
-rw-r--r--template/en/default/account/prefs/prefs.html.tmpl2
-rw-r--r--template/en/default/account/prefs/tabs.html.tmpl30
2 files changed, 31 insertions, 1 deletions
diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl
index e898738b7..9610752ed 100644
--- a/template/en/default/account/prefs/prefs.html.tmpl
+++ b/template/en/default/account/prefs/prefs.html.tmpl
@@ -95,7 +95,7 @@
END;
%]
-[% WRAPPER global/tabs.html.tmpl
+[% WRAPPER account/prefs/tabs.html.tmpl
tabs = tabs
current_tab = current_tab
%]
diff --git a/template/en/default/account/prefs/tabs.html.tmpl b/template/en/default/account/prefs/tabs.html.tmpl
new file mode 100644
index 000000000..14a0ccad6
--- /dev/null
+++ b/template/en/default/account/prefs/tabs.html.tmpl
@@ -0,0 +1,30 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[%# INTERFACE:
+ # tabs: List of hashes. Must have at least one item. Each hash has:
+ # name: string. Name of the tab.
+ # link: string. relative URL to the tab's resource on this installation.
+ # label: string. text displayed in the tab.
+ # current_tab_name: string. name of the currently selected tab
+ #%]
+
+<div id="prefmain">
+ <div id="prefnav">
+ <ul>
+ [% FOREACH tab = tabs %]
+ <li [%= IF tab.name == current_tab_name %]class="selected"[% END %]>
+ <a href="[% tab.link FILTER html %]">[% tab.label FILTER html %]</a>
+ </li>
+ [% END %]
+ </ul>
+ </div>
+ <div id="prefcontent">
+ [% content FILTER none %]
+ </div>
+</div>