Commit 619f441a authored by bugzilla%glob.com.au's avatar bugzilla%glob.com.au

Bug 341495: Merge the banner and header

Patch by Byron Jones <bugzilla@glob.com.au> r=LpSolit,kevin.benton a=justdave
parent 49449152
...@@ -95,7 +95,7 @@ print $cgi->header(); ...@@ -95,7 +95,7 @@ print $cgi->header();
my @row; my @row;
$template->put_header("Bugzilla Sanity Check"); $template->put_header("Sanity Check");
########################################################################### ###########################################################################
# Fix vote cache # Fix vote cache
......
...@@ -27,53 +27,55 @@ body ...@@ -27,53 +27,55 @@ body
background-color: #fff; background-color: #fff;
} }
/* banner (begin) */ /* header (begin) */
#banner #header
{
width: 100%;
background: #fff;
padding-bottom: 1em;
}
#banner p
{ {
margin: 0; margin-bottom: 1em;
margin-bottom: 1px; padding-bottom: 2px;
padding: 0;
} }
#banner-name #header form
{ {
font-size: 0px; font-size: 85%;
height: 48px; display: inline;
background: transparent no-repeat url(global/header.png);
} }
#banner .links #header .links
{ {
font-family: sans-serif; font-family: sans-serif;
font-size: 85%; font-size: 85%;
background: #fff; border-left: 1px solid silver;
border-right: 1px solid silver;
border-bottom: 1px solid silver;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
padding: 0.5em;
} }
#banner form #message
{ {
font-size: 85%; border: 1px solid red;
display: inline;
padding: 0.3em;
color: green;
} }
/* banner (end) */
/* header (begin) */ /* header (end) */
#header
/* banner (begin) */
#banner
{ {
width: 100%;
background-color: #edf2f2;
border: 1px solid #ddd;
margin-bottom: 1em;
} }
#header h1,h2,h3 /* banner (end) */
/* titles (begin) */
#titles
{ {
width: 100%;
background-color: #404D6C;
color: #fff;
-moz-border-radius: 5px;
font-family: sans-serif; font-family: sans-serif;
font-size: 110%; font-size: 110%;
margin: 0; margin: 0;
...@@ -81,33 +83,33 @@ body ...@@ -81,33 +83,33 @@ body
vertical-align: bottom; vertical-align: bottom;
} }
#header h1 #titles a
{
color: #fff;
}
#titles #title
{ {
font-weight: bold; font-weight: bold;
white-space: nowrap;
} }
#header h2 #titles #subtitle
{ {
font-weight: normal; font-weight: normal;
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
#header h3 #titles #information
{ {
font-weight: normal; font-weight: normal;
text-align: right; text-align: right;
font-size: 90%; font-size: 90%;
white-space: nowrap;
} }
#message /* titles (end) */
{
border: 1px solid red;
padding: 0.3em;
color: green;
}
/* header (end) */
/* footer (begin) */ /* footer (begin) */
#footer #footer
......
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
[% title = BLOCK %] [% title = BLOCK %]
[% IF curpanel == -1 %] [% IF curpanel == -1 %]
[% terms.Bugzilla FILTER html %] Parameters: Index Parameters: Index
[% ELSE %] [% ELSE %]
[% terms.Bugzilla FILTER html %] Configuration: Configuration:
[%+ current_panel.title FILTER html %] [%+ current_panel.title FILTER html %]
[% END %] [% END %]
[% END %] [% END %]
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
[% filtered_timestamp = bug.delta_ts FILTER time %] [% filtered_timestamp = bug.delta_ts FILTER time %]
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "$terms.Bug $bug.bug_id - $bug.short_desc" title = "$terms.Bug $bug.bug_id - $bug.short_desc"
h1 = "$terms.Bugzilla $terms.Bug&nbsp;$bug.bug_id" h1 = "$terms.Bug&nbsp;$bug.bug_id"
h2 = filtered_desc h2 = filtered_desc
h3 = "Last modified: $filtered_timestamp" h3 = "Last modified: $filtered_timestamp"
bodyclasses = ['bz_bug', bodyclasses = ['bz_bug',
......
...@@ -23,15 +23,5 @@ ...@@ -23,15 +23,5 @@
[%# Migration note: this file corresponds to the old Param 'bannerhtml' %] [%# Migration note: this file corresponds to the old Param 'bannerhtml' %]
[% PROCESS global/variables.none.tmpl %]
<div id="banner"> <div id="banner">
<div class="intro"></div>
<p id="banner-name">
<span>This is [% terms.Bugzilla %]</span>
</p>
<div class="outro"></div>
[% PROCESS "global/common-links.html.tmpl" no_find = 0 %]
</div> </div>
...@@ -123,30 +123,35 @@ ...@@ -123,30 +123,35 @@
# 'bannerhtml' # 'bannerhtml'
#%] #%]
<div id="header">
[% INCLUDE global/banner.html.tmpl %] [% INCLUDE global/banner.html.tmpl %]
<table border="0" cellspacing="0" cellpadding="0" id="header"> <table border="0" cellspacing="0" cellpadding="0" id="titles">
<tr> <tr>
[% IF h1 %] <td id="title">
<td> [% terms.Bugzilla %][% IF h1 %] - [% h1 %] [% END %]
<h1>[% h1 %]</h1> </td>
</td>
[% END %]
[% IF h2 %] [% IF h2 %]
<td> <td id="subtitle">
<h2>[% h2 %]</h2> [% h2 %]
</td> </td>
[% END %] [% END %]
[% IF h3 %] [% IF h3 %]
<td> <td id="information">
<h3>[% h3 %]</h3> [% h3 %]
</td> </td>
[% END %] [% END %]
</tr> </tr>
</table> </table>
[% PROCESS "global/common-links.html.tmpl" %]
[% IF message %] [% IF message %]
<div id="message">[% message %]</div> <div id="message">[% message %]</div>
[% END %] [% END %]
</div>
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "$terms.Bugzilla Main Page" title = "$terms.Bugzilla Main Page"
h1 = "Main Page"
h3 = "version $VERSION" h3 = "version $VERSION"
style_urls = [ 'skins/standard/index.css' ] style_urls = [ 'skins/standard/index.css' ]
onload = 'document.forms[\'f\'].quicksearch.focus();' onload = 'document.forms[\'f\'].quicksearch.focus();'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment