summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-02-06 14:12:43 +0100
committerYorhel <git@yorhel.nl>2011-02-06 14:12:43 +0100
commit8b3eb97627131a9be85cf784484d8d51d9b417c0 (patch)
treeede1e2f05133f0fa95ee7f819005b2112f21e159 /lib/VNDB
parentbccc7326a43020e44aea345b803adaceaa90f2a2 (diff)
Added tag visibility options by category on /v+
The JS code is a bit messy, though...
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Handler/VNPage.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index ee121c9b..aa3c0538 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -156,7 +156,10 @@ sub page {
if(@$t) {
div id => 'tagops';
# NOTE: order of these links is hardcoded in JS
- a href => '#', class => 'tsel', mt '_vnpage_tags_spoil0';
+ a href => '#cont', lc mt '_tagcat_cont';
+ a href => '#ero', lc mt '_tagcat_ero';
+ a href => '#tech', lc mt '_tagcat_tech';
+ a href => '#', class => 'sec tsel', mt '_vnpage_tags_spoil0';
a href => '#', mt '_vnpage_tags_spoil1';
a href => '#', mt '_vnpage_tags_spoil2';
a href => '#', class => 'sec', mt '_vnpage_tags_summary';
@@ -164,7 +167,7 @@ sub page {
end;
div id => 'vntags';
for (@$t) {
- span class => sprintf 'tagspl%.0f %s', $_->{spoiler}, $_->{spoiler} > 0 ? 'hidden' : '';
+ span class => sprintf 'tagspl%.0f cat_%s %s', $_->{spoiler}, $_->{cat}, $_->{spoiler} > 0 ? 'hidden' : '';
a href => "/g$_->{id}", style => sprintf('font-size: %dpx', $_->{rating}*3.5+6), $_->{name};
b class => 'grayedout', sprintf ' %.1f', $_->{rating};
end;