]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 465678 - userprefs.cgi title should indicate which tab i'm on
authorSunil Joshi <joshi_sunil@in.com>
Mon, 4 Nov 2013 23:37:27 +0000 (09:37 +1000)
committerSimon Green <sgreen@redhat.com>
Mon, 4 Nov 2013 23:37:27 +0000 (09:37 +1000)
r=simon, a=glob

template/en/default/account/prefs/prefs.html.tmpl

index ae3f9c8423e63647679ef7f708548d272c8acc5d..2c560f5b69c84653a17ae09dacbdbaa74da684d5 100644 (file)
   #%]
 
 [% 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" },
   [% 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