From 6cf2172e2c3f442dca8d8755622d7e598a45899f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 13 Jul 2017 21:31:45 -0400 Subject: Revert "Bug 1380064 - Remove references to Mozilla skin to prevent problems when default preferences are changed" This reverts commit 38af0fd192c2edc1b6ad791936cc32888cb94698. --- template/en/default/global/common-links.html.tmpl | 69 ++++++++++++++++++++++- template/en/default/global/header.html.tmpl | 57 ++++++++++++++++++- 2 files changed, 122 insertions(+), 4 deletions(-) (limited to 'template') diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index c2c054b24..76b0855d8 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -32,9 +32,9 @@ |
- - [%-# Work around FF bug: keep this on one line %]
[help] @@ -42,8 +42,73 @@
  • | Reports
  • + [% IF user.settings.skin.value != 'Mozilla' && user.settings.skin.value != 'Mozilla-OpenSans' %] +
  • + [% IF Param('shutdownhtml') || Bugzilla.has_flags %] + | + [% IF user.id %] + My Requests + [% ELSE %] + Requests + [% END %] + [% END %] + [%-# Work around FF bug: keep this on one line %]
  • + [% END %] + [% Hook.process('action-links') %] + [% IF user.settings.skin.value != 'Mozilla' && user.settings.skin.value != 'Mozilla-OpenSans' %] + [% IF user.login %] +
  • | Preferences
  • + [% IF user.in_group('tweakparams') || user.in_group('editusers') || user.can_bless + || (Param('useclassification') && user.in_group('editclassifications')) + || user.in_group('editcomponents') || user.in_group('admin') || user.in_group('creategroups') + || user.in_group('editkeywords') || user.in_group('bz_canusewhines') + || user.get_products_by_permission("editcomponents").size %] +
  • | Administration
  • + [% END %] + + [% PROCESS link_to_documentation %] + +
  • + | + [% IF user.authorizer.can_logout %] + Log out + [% ELSE %] + Logged in as + [% END %] + [% IF sudoer %] + [%+ sudoer.login FILTER html %] (impersonating + [%+ user.login FILTER html %] + end session) + [% ELSE %] + [%+ user.login FILTER html %] + [% END %] + [%-# Work around FF bug: keep this on one line %]
  • + [% ELSE %] + + [% PROCESS link_to_documentation %] + + [% IF Param('createemailregexp') + && user.authorizer.user_can_create_account %] +
  • + | + New Account +
  • + [% END %] + + [%# Only display one login form when we're on a LOGIN_REQUIRED page. That + # way, we're guaranteed that the user will use the form that has + # hidden_fields in it (the center form) instead of this one. Also, it's + # less confusing to have one form (as opposed to three) when you're + # required to log in. + #%] + [% IF user.authorizer.can_login && !Bugzilla.page_requires_login %] + [% PROCESS "account/auth/login-small.html.tmpl" %] + [% END %] + [% END %] + [% END %] [% Hook.process("link-row") %] diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 1c53daab0..107c69069 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -238,6 +238,7 @@