Commit 4c6e7942 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 245924: updates Bugzilla footer to take advantage of HTML4 and CSS formatting.

Patch by Vitaly Harisov. r=myk a=myk
parent b551925a
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* *
* Contributor(s): Byron Jones <bugzilla@glob.com.au> * Contributor(s): Byron Jones <bugzilla@glob.com.au>
* Christian Reis <kiko@async.com.br> * Christian Reis <kiko@async.com.br>
* Vitaly Harisov <vitaly@rathedg.com>
* Svetlana Harisova <light@rathedg.com>
*/ */
/* banner (begin) */ /* banner (begin) */
...@@ -71,6 +73,99 @@ ...@@ -71,6 +73,99 @@
} }
/* banner (end) */ /* banner (end) */
/* footer (begin) */
#footer
{
float: left;
}
#footer form
{
background: #FFFFE0;
border: 1px solid #000;
}
#footer span
{
display: block;
}
#footer .btn, #footer .txt
{
font-size: 0.8em;
}
#footer #useful-links
{
padding: 0.3em;
}
/* hide from MSIE and NN4 */
[id]#footer #useful-links
{
margin: 0.3em;
display: table;
}
#footer .group
{
display: table-row;
}
#footer #link-action,
#footer #link-edit,
#footer #link-saved
{
width: 7.2em;
display: block;
float: left;
vertical-align: baseline;
padding: 0.1em 0.2em;
}
#footer #link-action
{
padding-top: 0.45em;
}
/* hide from MSIE and NN4 */
[id]#footer #link-action,
[id]#footer #link-edit,
[id]#footer #link-saved
{
display: table-cell;
float: none;
width: auto;
padding-top: 0;
}
#footer .links
{
display: block;
padding: 0.1em 0.2em;
}
/* hide from MSIE and NN4 */
[id]#footer .links
{
display: table-cell;
padding-top: 0;
vertical-align: baseline;
}
/* hide from MSIE and NN4 */
#footer+*
{
clear: both;
}
/* footer (end) */
.bz_obsolete { text-decoration: line-through; } .bz_obsolete { text-decoration: line-through; }
.bz_inactive { text-decoration: line-through; } .bz_inactive { text-decoration: line-through; }
.bz_closed { text-decoration: line-through; } .bz_closed { text-decoration: line-through; }
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* *
* Contributor(s): Byron Jones <bugzilla@glob.com.au> * Contributor(s): Byron Jones <bugzilla@glob.com.au>
* Christian Reis <kiko@async.com.br> * Christian Reis <kiko@async.com.br>
* Vitaly Harisov <vitaly@rathedg.com>
* Svetlana Harisova <light@rathedg.com>
*/ */
/* banner (begin) */ /* banner (begin) */
...@@ -71,6 +73,99 @@ ...@@ -71,6 +73,99 @@
} }
/* banner (end) */ /* banner (end) */
/* footer (begin) */
#footer
{
float: left;
}
#footer form
{
background: #FFFFE0;
border: 1px solid #000;
}
#footer span
{
display: block;
}
#footer .btn, #footer .txt
{
font-size: 0.8em;
}
#footer #useful-links
{
padding: 0.3em;
}
/* hide from MSIE and NN4 */
[id]#footer #useful-links
{
margin: 0.3em;
display: table;
}
#footer .group
{
display: table-row;
}
#footer #link-action,
#footer #link-edit,
#footer #link-saved
{
width: 7.2em;
display: block;
float: left;
vertical-align: baseline;
padding: 0.1em 0.2em;
}
#footer #link-action
{
padding-top: 0.45em;
}
/* hide from MSIE and NN4 */
[id]#footer #link-action,
[id]#footer #link-edit,
[id]#footer #link-saved
{
display: table-cell;
float: none;
width: auto;
padding-top: 0;
}
#footer .links
{
display: block;
padding: 0.1em 0.2em;
}
/* hide from MSIE and NN4 */
[id]#footer .links
{
display: table-cell;
padding-top: 0;
vertical-align: baseline;
}
/* hide from MSIE and NN4 */
#footer+*
{
clear: both;
}
/* footer (end) */
.bz_obsolete { text-decoration: line-through; } .bz_obsolete { text-decoration: line-through; }
.bz_inactive { text-decoration: line-through; } .bz_inactive { text-decoration: line-through; }
.bz_closed { text-decoration: line-through; } .bz_closed { text-decoration: line-through; }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Matthew Tuck <matty@chariot.net.au> # Matthew Tuck <matty@chariot.net.au>
# Vitaly Harisov <vitaly@rathedg.com>
#%] #%]
[%# Migration note: this file corresponds to the old Param 'bannerhtml' %] [%# Migration note: this file corresponds to the old Param 'bannerhtml' %]
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Svetlana Harisova <light@rathedg.com>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
...@@ -30,13 +31,8 @@ ...@@ -30,13 +31,8 @@
# 'footerhtml' # 'footerhtml'
#%] #%]
<table border="0"> <div id="footer">
<tr> <div class="intro"></div>
<td bgcolor="#000000" valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="100%"
bgcolor="lightyellow">
<tr>
<td>
[%# Migration note: the old param 'blurbhtml' goes here %] [%# Migration note: the old param 'blurbhtml' goes here %]
...@@ -44,11 +40,8 @@ ...@@ -44,11 +40,8 @@
[% PROCESS "global/useful-links.html.tmpl" %] [% PROCESS "global/useful-links.html.tmpl" %]
</td> <div class="outro"></div>
</tr> </div>
</table>
</td>
</tr>
</table>
</body> </body>
</html> </html>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Svetlana Harisova <light@rathedg.com>
#%] #%]
[%# Migration note: this whole file corresponds to the old %commandmenu% [%# Migration note: this whole file corresponds to the old %commandmenu%
...@@ -25,18 +26,15 @@ ...@@ -25,18 +26,15 @@
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
<form method="get" action="show_bug.cgi"> <form method="get" action="show_bug.cgi">
<table width="100%" cellspacing="4"> <div id="useful-links">
<tr> <div class="group">
<td> <div id="link-action">Actions:</div>
Actions: <div class="links">
</td>
<td valign="middle">
<a href="enter_bug.cgi">New</a> | <a href="enter_bug.cgi">New</a> |
<a href="query.cgi">Search</a> | <a href="query.cgi">Search</a> |
<input type="submit" value="Find"> [% terms.bug %] # <input class="btn" type="submit" value="Find"> [% terms.bug %] #
<input name="id" size="6"> | <input class="txt" name="id" size="6"> |
<a href="report.cgi">Reports</a> <a href="report.cgi">Reports</a>
...@@ -62,15 +60,14 @@ ...@@ -62,15 +60,14 @@
[% END %] [% END %]
| <a href="query.cgi?GoAheadAndLogIn=1">Log&nbsp;In</a> | <a href="query.cgi?GoAheadAndLogIn=1">Log&nbsp;In</a>
[% END %] [% END %]
</td> </div>
</tr> </div>
[% IF user.login %] [% IF user.login %]
<tr> <div class="group">
<td> <div id="link-edit">Edit:</div>
Edit: <div class="links">
</td>
<td valign="middle">
<a href="userprefs.cgi">Prefs</a> <a href="userprefs.cgi">Prefs</a>
[% ' | <a href="editparams.cgi">Parameters</a>' [% ' | <a href="editparams.cgi">Parameters</a>'
IF user.groups.tweakparams %] IF user.groups.tweakparams %]
...@@ -84,21 +81,20 @@ ...@@ -84,21 +81,20 @@
IF user.groups.creategroups %] IF user.groups.creategroups %]
[% ' | <a href="editkeywords.cgi">Keywords</a>' [% ' | <a href="editkeywords.cgi">Keywords</a>'
IF user.groups.editkeywords %] IF user.groups.editkeywords %]
</td> </div>
</tr> </div>
[% END %] [% END %]
[%# Saved searches %] [%# Saved searches %]
<tr> <div class="group">
<div id="link-saved">
[% IF user.showmybugslink OR user.queries.size %] [% IF user.showmybugslink OR user.queries.size %]
<td>
Saved&nbsp;Searches: Saved&nbsp;Searches:
</td>
[% END %] [% END %]
</div>
<td valign="middle"> <div class="links">
[% IF user.showmybugslink %] [% IF user.showmybugslink %]
[% filtered_username = user.login FILTER url_quote %] [% filtered_username = user.login FILTER url_quote %]
<a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My&nbsp;[% terms.Bugs %]</a> <a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My&nbsp;[% terms.Bugs %]</a>
...@@ -112,8 +108,7 @@ ...@@ -112,8 +108,7 @@
[% print_pipe = 1 %] [% print_pipe = 1 %]
[% END %] [% END %]
[% END %] [% END %]
</td> </div>
</tr> </div>
</div>
</table>
</form> </form>
...@@ -101,7 +101,8 @@ for "crash secure SSL flash". ...@@ -101,7 +101,8 @@ for "crash secure SSL flash".
<td> <td>
<input type="submit" value="Search"> <input type="submit" value="Search">
</td> </td>
</tr>
</table>
</form> </form>
[% PROCESS global/footer.html.tmpl %] [% PROCESS global/footer.html.tmpl %]
......
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