diff options
author | Yorhel <git@yorhel.nl> | 2008-12-14 11:44:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-14 11:44:09 +0100 |
commit | d85da4dfaa971c5244bc26d52ca517d6190f0fdb (patch) | |
tree | 45fcba1e07ee0707e366f0cf502dcfbac84a9c4c /lib/VNDB/Handler/ULists.pm | |
parent | 930d2d4dd61bd93b47315eb8992bc745d0fa633a (diff) |
Fixed all XHTML validation bugs I could find
With two exceptions:
- Empty browse tables (/u1/list, /u3/hist, ..)
- Empty <tbody> on /v+/edit and /v/new
I'm not purist enough to work around those bugs. (well, maybe I'll fix the
empty browse table thing, as it's not really user friendly either)
Diffstat (limited to 'lib/VNDB/Handler/ULists.pm')
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm index 0ef4c41c..5353dbc9 100644 --- a/lib/VNDB/Handler/ULists.pm +++ b/lib/VNDB/Handler/ULists.pm @@ -153,8 +153,7 @@ sub wishlist { td class => 'tc3', date $i->{added}, 'compact'; end; }, - footer => sub { - return if !$own; + $own ? (footer => sub { Tr; td colspan => 3; Select name => 'batchedit', id => 'batchedit'; @@ -167,7 +166,7 @@ sub wishlist { end; end; end; - }, + }) : (), ); end if $own; $self->htmlFooter; @@ -309,8 +308,7 @@ sub _vnlist_browse { } }, - footer => sub { - return if !$own; + $own ? (footer => sub { Tr; td class => 'tc1', colspan => 3; Select id => 'batchedit', name => 'batchedit'; @@ -328,7 +326,7 @@ sub _vnlist_browse { end; td class => 'tc2', colspan => 2, '* Obtained/finished/total'; end; - } + }) : (), ); end if $own; |