diff options
author | Yorhel <git@yorhel.nl> | 2009-05-31 10:44:36 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-05-31 10:44:36 +0200 |
commit | 82aea85bad2913a1e9f25751cbe998dc671bd520 (patch) | |
tree | c535850205aa8124730e2150b6dcb70c774d1078 /lib | |
parent | d6eb18f061870fde4c7bdce212f976e48049cd50 (diff) |
Option to expand/collapse edit summaries on history browser
Makes use of cookies to store the users' preference. Might be a good
idea to store this in the DB for logged in users, together with the
tagspoil cookie.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index b9405941..1d6ae43b 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -484,7 +484,7 @@ sub htmlHistory { sub { td colspan => 2, class => 'tc1', 'Rev.' }, [ 'Date' ], [ 'User' ], - [ 'Page' ], + sub { td; a href => '#', id => 'history_comments', 'expand'; txt 'Page'; end; } ], row => sub { my($s, $n, $i) = @_; @@ -507,8 +507,8 @@ sub htmlHistory { end; end; if($i->{comments}) { - Tr $n % 2 ? ( class => 'odd' ) : (); - td colspan => 5, class => 'editsum'; + Tr class => $n % 2 ? 'editsum odd hidden' : 'editsum hidden'; + td colspan => 5; lit bb2html $i->{comments}, 150; end; end; |