summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/BrowseHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2012-01-25 13:59:43 +0100
committerYorhel <git@yorhel.nl>2012-01-25 13:59:43 +0100
commit6f33c4786786978ee785bc3e5020cef5f66254ef (patch)
tree6f6de09886a4baeacbae9e5e8982e4415b881dc7 /lib/VNDB/Util/BrowseHTML.pm
parent616ddb08bf4f10560229bee326eb89ce1bef7488 (diff)
Do most of the table striping in CSS
Using CSS3 selectors. This is a more elegant approach, and since browser support for CSS3 selectors isn't as crap as it used to be I can finally make use of them.
Diffstat (limited to 'lib/VNDB/Util/BrowseHTML.pm')
-rw-r--r--lib/VNDB/Util/BrowseHTML.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Util/BrowseHTML.pm b/lib/VNDB/Util/BrowseHTML.pm
index 993f8746..88396cf5 100644
--- a/lib/VNDB/Util/BrowseHTML.pm
+++ b/lib/VNDB/Util/BrowseHTML.pm
@@ -38,7 +38,7 @@ sub htmlBrowse {
$self->htmlBrowseNavigate($opt{pageurl}, $opt{options}{p}, $opt{nextpage}, 't');
div class => 'mainbox browse'.($opt{class} ? ' '.$opt{class} : '');
- table;
+ table class => 'stripe';
# header
thead;
@@ -139,7 +139,7 @@ sub htmlBrowseHist {
my($s, $n, $i) = @_;
my $revurl = "/$i->{type}$i->{iid}.$i->{rev}";
- Tr $n % 2 ? ( class => 'odd' ) : ();
+ Tr;
td class => 'tc1_1';
a href => $revurl, "$i->{type}$i->{iid}";
end;
@@ -180,7 +180,7 @@ sub htmlBrowseVN {
],
row => sub {
my($s, $n, $l) = @_;
- Tr $n % 2 ? (class => 'odd') : ();
+ Tr;
if($tagscore) {
td class => 'tc_s';
tagscore $l->{tagscore}, 0;