Commit 531a3a34 authored by jake%bugzilla.org's avatar jake%bugzilla.org

Bug 289594 - The table on the email settings page no longer is 100% wide. It…

Bug 289594 - The table on the email settings page no longer is 100% wide. It also now supports even/odd row styling. r=gerv, a=justdave
parent 9782d3fe
...@@ -32,14 +32,6 @@ table#form tr th { text-align: right; } ...@@ -32,14 +32,6 @@ table#form tr th { text-align: right; }
table.bz_buglist td, table.bz_buglist th { table.bz_buglist td, table.bz_buglist th {
} }
/* For styling rows; by default striped white and gray */
tr.bz_odd {
background-color: #F7F7F7;
}
tr.bz_even {
}
/* we use a first-child class and not the pseudo-class because IE /* we use a first-child class and not the pseudo-class because IE
* doesn't support it :-( */ * doesn't support it :-( */
tr.bz_secure td.first-child { tr.bz_secure td.first-child {
......
...@@ -293,6 +293,18 @@ body ...@@ -293,6 +293,18 @@ body
.bz_private { color: darkred ; background : #f3eeee ; } .bz_private { color: darkred ; background : #f3eeee ; }
.bz_disabled { color: #a0a0a0 ; } .bz_disabled { color: #a0a0a0 ; }
.bz_row_odd
{
background-color: #CCCCCC;
color: #000000;
}
.bz_row_even
{
background-color: #FFFFFF;
color: #000000;
}
.bz_comment { background-color: #e0e0e0; } .bz_comment { background-color: #e0e0e0; }
.bz_comment_hilite pre .bz_comment_hilite pre
{ {
......
...@@ -148,7 +148,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb ...@@ -148,7 +148,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
description = "Voter" }, description = "Voter" },
] %] ] %]
<table width="100%" border="1"> <table class="bz_emailprefs" border="1">
<tr> <tr>
<td colspan="[% (useqacontact AND usevotes) ? '5' : <td colspan="[% (useqacontact AND usevotes) ? '5' :
((useqacontact OR usevotes) ? '4' : '3') %]" ((useqacontact OR usevotes) ? '4' : '3') %]"
...@@ -171,7 +171,8 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb ...@@ -171,7 +171,8 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
</tr> </tr>
[% FOREACH event = events %] [% FOREACH event = events %]
<tr> [% count = loop.count() %]
<tr class="bz_row_[% count % 2 == 1 ? "odd" : "even" %]">
[% FOREACH relationship = relationships %] [% FOREACH relationship = relationships %]
[% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR
(relationship.id == constants.REL_VOTER AND NOT usevotes) %] (relationship.id == constants.REL_VOTER AND NOT usevotes) %]
......
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
[%+ "bz_$bug.resolution" FILTER css_class_quote IF bug.resolution -%] [%+ "bz_$bug.resolution" FILTER css_class_quote IF bug.resolution -%]
[%+ "bz_secure" IF bug.secure_mode -%] [%+ "bz_secure" IF bug.secure_mode -%]
[%+ "bz_secure_mode_$bug.secure_mode" FILTER css_class_quote IF bug.secure_mode -%] [%+ "bz_secure_mode_$bug.secure_mode" FILTER css_class_quote IF bug.secure_mode -%]
[%+ count % 2 == 1 ? "bz_odd" : "bz_even" -%] [%+ count % 2 == 1 ? "bz_row_odd" : "bz_row_even" -%]
"> ">
......
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