diff options
author | Yorhel <git@yorhel.nl> | 2008-11-14 16:42:30 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-11-14 16:42:30 +0100 |
commit | 549608b0091107973c6d25b2a45189b85663144c (patch) | |
tree | 56ae8281454d62e12d8cb35cfb7f82ef31955b9e /lib/VNDB/Util/CommonHTML.pm | |
parent | 9476900ba8562fec588bc15435ca63b713c278ae (diff) |
Added basic history browser
Doesn't work for r+ and v+ yet. Filter options pending...
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 6771df75..f2c4d6ff 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -97,8 +97,9 @@ sub htmlDenied { # items => arrayref with the list items # options => hashref containing at least the keys s (sort key), o (order) and p (page) # nextpage => whether there's a next page or not -# sorturl => base URL to append the sort options to +# sorturl => base URL to append the sort options to (if there are any sortable columns) # pageurl => base URL to append the page option to +# class => classname of the mainbox # header => # can be either an arrayref or subroutine reference, # in the case of a subroutine, it will be called when the header should be written, @@ -111,12 +112,12 @@ sub htmlDenied { sub htmlBrowse { my($self, %opt) = @_; - $opt{sorturl} .= $opt{sorturl} =~ /\?/ ? '&' : '?'; + $opt{sorturl} .= $opt{sorturl} =~ /\?/ ? '&' : '?' if $opt{sorturl}; # top navigation $self->htmlBrowseNavigate($opt{pageurl}, $opt{options}{p}, $opt{nextpage}, 't'); - div class => 'mainbox browse'; + div class => 'mainbox browse'.($opt{class} ? ' '.$opt{class} : ''); table; # header |