summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/header.html.tmpl
diff options
context:
space:
mode:
authorMary Umoh <umohm12@gmail.com>2017-07-14 03:18:33 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-14 03:18:33 +0200
commit38af0fd192c2edc1b6ad791936cc32888cb94698 (patch)
tree4774e6aee365213c876dfddb9f3330b6fa2058d0 /template/en/default/global/header.html.tmpl
parent6b45c4a0bd593cbe50858e81e76e7681a23d75a6 (diff)
downloadbugzilla-38af0fd192c2edc1b6ad791936cc32888cb94698.tar.gz
bugzilla-38af0fd192c2edc1b6ad791936cc32888cb94698.tar.xz
Bug 1380064 - Remove references to Mozilla skin to prevent problems when default preferences are changed
Diffstat (limited to 'template/en/default/global/header.html.tmpl')
-rw-r--r--template/en/default/global/header.html.tmpl57
1 files changed, 2 insertions, 55 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 107c69069..1c53daab0 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -238,7 +238,6 @@
<div id="header">
-[% IF user.settings.skin.value == 'Mozilla' || user.settings.skin.value == 'Mozilla-OpenSans' %]
<div class="wrapper">
<table border="0" cellspacing="0" cellpadding="0" id="titles">
<tr>
@@ -257,7 +256,6 @@
[% IF user.showmybugslink %]
[% filtered_username = user.login FILTER uri %]
<li><a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My [% terms.Bugs %]</a></li>
- [% END %]
<li><a href="page.cgi?id=mydashboard.html">My Dashboard</a></li>
<li><a href="user_profile">My Profile</a></li>
<li><a href="page.cgi?id=user_activity.html&amp;action=run&amp;who=[% user.login FILTER uri %]">My Activity</a></li>
@@ -325,65 +323,14 @@
[% PROCESS "global/common-links.html.tmpl" qs_suffix = "_top" %]
</div>
-
-[% ELSE %]
-
-[% INCLUDE global/banner.html.tmpl %]
-
-<table border="0" cellspacing="0" cellpadding="0" id="titles">
-<tr>
- <td id="title">
- <p>[% terms.BugzillaTitle %]
- [% Hook.process("message") %]
- [% " &ndash; $header" IF header %]</p>
- </td>
-
- [% IF subheader %]
- <td id="subtitle">
- <p class="subheader">[% subheader %]</p>
- </td>
- [% END %]
-
- [% IF header_addl_info %]
- <td id="information">
- <p class="header_addl_info">[% header_addl_info %]</p>
- </td>
- [% END %]
-</tr>
-</table>
-
-<table id="lang_links_container" cellpadding="0" cellspacing="0"
- class="bz_default_hidden"><tr><td>
-[% IF Bugzilla.languages.size > 1 %]
- <ul class="links">
- [% FOREACH lang = Bugzilla.languages.sort %]
- <li>[% IF NOT loop.first %]<span class="separator"> | </span>[% END %]
- [% IF lang == current_language %]
- <span class="lang_current">[% lang FILTER html FILTER upper %]</span>
- [% ELSE %]
- <a href="#" onclick="set_language('[% lang FILTER none %]');">
- [%- lang FILTER html FILTER upper %]</a>
- [% END %]
- </li>
- [% END %]
- </ul>
-[% END %]
-</td></tr></table>
-
-[% PROCESS "global/common-links.html.tmpl" qs_suffix = "_top" %]
-
-[% END %]
-
</div> [%# header %]
<div id="bugzilla-body">
[%# in most cases the "header" variable provides redundant information, however
# there are exceptions where not displaying this text is problematic. %]
-[% IF (user.settings.skin.value == 'Mozilla' || user.settings.skin.value == 'Mozilla-OpenSans')
- && template.name.match('^attachment/')
- && !header.match('^Bug&nbsp;\d+$')
-%]
+[% IF template.name.match('^attachment/')
+ && !header.match('^Bug&nbsp;\d+$') %]
<h2>[% header FILTER none %]</h2>
[% END %]