diff options
author | Yorhel <git@yorhel.nl> | 2015-07-21 03:15:57 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-07-21 03:15:57 +0200 |
commit | 6f15f1d2d1f23983e0262e8e9565356dc9a2c4e7 (patch) | |
tree | 8e98469103f1e6f55a96df808310cb8cc6cb54e7 /lib/VNDB/Handler/VNPage.pm | |
parent | 0032d62652c6168316fd9429d17604b61a812598 (diff) |
Add profile option for default visible tag categories on VN pages
The name of the profile setting isn't very clear. Not sure what to do
with it.
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r-- | lib/VNDB/Handler/VNPage.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index ef808d82..669ea7b7 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -625,9 +625,8 @@ sub page { if(@$t) { div id => 'tagops'; # NOTE: order of these links is hardcoded in JS - a href => '#cont', lc mt '_tagcat_cont'; - a href => '#ero', lc mt '_tagcat_ero'; - a href => '#tech', lc mt '_tagcat_tech'; + my $tags_cat = $self->authPref('tags_cat') || $self->{default_tags_cat}; + a href => "#$_", $tags_cat =~ /\Q$_/ ? (class => 'tsel') : (), lc mt "_tagcat_$_" for qw|cont ero tech|; a href => '#', class => 'sec tsel', mt '_vnpage_tags_spoil0'; a href => '#', mt '_vnpage_tags_spoil1'; a href => '#', mt '_vnpage_tags_spoil2'; |