From 79f40fb447c372e2a44cb40dae3ea632f2158109 Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Tue, 5 Nov 2013 09:37:27 +1000 Subject: Bug 465678 - userprefs.cgi title should indicate which tab i'm on r=simon, a=glob --- template/en/default/account/prefs/prefs.html.tmpl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'template/en/default/account') diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl index ae3f9c842..2c560f5b6 100644 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ b/template/en/default/account/prefs/prefs.html.tmpl @@ -23,14 +23,6 @@ #%] [% filtered_login = user.login FILTER html %] -[% PROCESS global/header.html.tmpl - title = "User Preferences" - subheader = filtered_login - style_urls = ['skins/standard/admin.css'] - javascript_urls = ['js/util.js', 'js/field.js'] - doc_section = "userpreferences.html" - yui = ['autocomplete'] - %] [% tabs = [{ name => "settings", label => "General Preferences", link => "userprefs.cgi?tab=settings", saveable => "1" }, @@ -52,6 +44,15 @@ [% END %] [% END %] +[% PROCESS global/header.html.tmpl + title = current_tab.label + subheader = filtered_login + style_urls = ['skins/standard/admin.css'] + javascript_urls = ['js/util.js', 'js/field.js'] + doc_section = "userpreferences.html" + yui = ['autocomplete'] + %] + [% WRAPPER global/tabs.html.tmpl tabs = tabs current_tab = current_tab -- cgit v1.2.1