]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 341495: Merge the banner and header
authorbugzilla%glob.com.au <>
Tue, 27 Jun 2006 20:58:51 +0000 (20:58 +0000)
committerbugzilla%glob.com.au <>
Tue, 27 Jun 2006 20:58:51 +0000 (20:58 +0000)
Patch by Byron Jones <bugzilla@glob.com.au> r=LpSolit,kevin.benton a=justdave

sanitycheck.cgi
skins/standard/global.css
template/en/default/admin/params/editparams.html.tmpl
template/en/default/bug/show.html.tmpl
template/en/default/global/banner.html.tmpl
template/en/default/global/header.html.tmpl
template/en/default/index.html.tmpl

index 500c6a86352e9bb3af49ef728694a93c7388ba84..f0f794194903a505008a9416c82facc34a27c602 100755 (executable)
@@ -95,7 +95,7 @@ print $cgi->header();
 
 my @row;
 
-$template->put_header("Bugzilla Sanity Check");
+$template->put_header("Sanity Check");
 
 ###########################################################################
 # Fix vote cache
index 65ff85a64f4ef11f82f3555761839a1a9d292878..aa303fc7e74034800aa1b3a9be00db7af42adb01 100644 (file)
@@ -27,53 +27,55 @@ body
     background-color: #fff;
 }
 
-/* banner (begin) */
-    #banner
-    {
-        width: 100%;
-        background: #fff;
-        padding-bottom: 1em;
-    }
-
-    #banner p
+/* header (begin) */
+    #header
     {
-        margin: 0;
-        margin-bottom: 1px;
-        padding: 0;
+        margin-bottom: 1em;
+        padding-bottom: 2px;
     }
 
-    #banner-name
+    #header form
     {
-        font-size: 0px;
-        height: 48px;
-        background: transparent no-repeat url(global/header.png);
+        font-size: 85%;
+        display: inline;
     }
 
-    #banner .links
+    #header .links
     {
         font-family: sans-serif;
         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%;
-        display: inline;
+        border: 1px solid red;
+
+        padding: 0.3em;
+        color: green;
     }
-/* banner (end) */
 
-/* header (begin) */
-    #header
+/* header (end)   */
+
+/* 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-size: 110%;
         margin: 0;
@@ -81,33 +83,33 @@ body
         vertical-align: bottom;
     }
 
-    #header h1
+    #titles a
+    {
+        color: #fff;
+    }
+
+    #titles #title
     {
         font-weight: bold;
+        white-space: nowrap;
     }
 
-    #header h2
+    #titles #subtitle
     {
         font-weight: normal;
         width: 100%;
         text-align: center;
     }
 
-    #header h3
+    #titles #information
     {
         font-weight: normal;
         text-align: right;
         font-size: 90%;
+        white-space: nowrap;
     }
 
-    #message
-    {
-        border: 1px solid red;
-
-        padding: 0.3em;
-        color: green;
-    }
-/* header (end)   */
+/* titles (end) */
 
 /* footer (begin) */
     #footer
index 0560cac6cbd9ca1a63d61bc2508d0e1a9979bac0..ef379e75c487deeb30e4f888c911fa34b32b14c5 100644 (file)
@@ -46,9 +46,9 @@
 
 [% title = BLOCK %]
   [% IF curpanel == -1 %]
-    [% terms.Bugzilla FILTER html %] Parameters: Index
+    Parameters: Index
   [% ELSE %]
-    [% terms.Bugzilla FILTER html %] Configuration:
+    Configuration:
     [%+ current_panel.title FILTER html %]
   [% END %]
 [% END %]
index 64410df1752df1e129612f15230dfaa56cb4082c..99fd466600c167f7b4f7e0dcac7349edad41df06 100644 (file)
@@ -31,7 +31,7 @@
   [% filtered_timestamp = bug.delta_ts FILTER time %]
   [% PROCESS global/header.html.tmpl
     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
     h3 = "Last modified: $filtered_timestamp"
     bodyclasses = ['bz_bug',
index 4aaa8bd912136d022ee2e29474c7b91f28e34947..620233afa7c03e081119496745693f1fa708f19c 100644 (file)
 
 [%# Migration note: this file corresponds to the old Param 'bannerhtml' %]
 
-[% PROCESS global/variables.none.tmpl %]
-
   <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>
index a18e860fb8a38be0a242a0d5f7010135a673924a..9edb5ec085ce1d6a32507619ae926a48d059e1d2 100644 (file)
   # 'bannerhtml'
   #%]
 
+
+<div id="header">
+
 [% INCLUDE global/banner.html.tmpl %]
 
-<table border="0" cellspacing="0" cellpadding="0" id="header">
+<table border="0" cellspacing="0" cellpadding="0" id="titles">
 <tr>
-  [% IF h1 %]
-    <td>
-      <h1>[% h1 %]</h1>
-    </td>
-  [% END %]
+  <td id="title">
+    [% terms.Bugzilla %][% IF h1 %] - [% h1 %] [% END %]
+  </td>
 
   [% IF h2 %]
-    <td>
-      <h2>[% h2 %]</h2>
+    <td id="subtitle">
+      [% h2 %]
     </td>
   [% END %]
 
   [% IF h3 %]
-    <td>
-      <h3>[% h3 %]</h3>
+    <td id="information">
+      [% h3 %]
     </td>
   [% END %]
 </tr>
 </table>
 
+[% PROCESS "global/common-links.html.tmpl" %]
+
 [% IF message %]
 <div id="message">[% message %]</div>
 [% END %]
+
+</div>
index c479f9201407e4fa17be2eaa9830fe3edeca4baf..053c03b92e028783d54a311b88838508734700d5 100644 (file)
@@ -31,6 +31,7 @@
 
 [% PROCESS global/header.html.tmpl
    title = "$terms.Bugzilla Main Page"
+   h1 = "Main Page" 
    h3 = "version $VERSION"
    style_urls = [ 'skins/standard/index.css' ]
    onload = 'document.forms[\'f\'].quicksearch.focus();'