summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-10-28 18:56:18 +0100
committerYorhel <git@yorhel.nl>2018-10-28 18:56:18 +0100
commit8de8e1f1d118a7746a033eda9f691c951a5ef022 (patch)
tree5c23f0db5e06a6fa3a41e59c3a62f3cee89b552b /lib/VNDB/Handler/VNPage.pm
parent0687115f993831353674397857f697e5be0c01f6 (diff)
Code style: Keep the HTML structure explicit and indentation correct
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r--lib/VNDB/Handler/VNPage.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index be60558e..20f29f7a 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -902,10 +902,10 @@ sub _release_icons {
sub _screenshots {
my($self, $v, $r) = @_;
- if(grep $_->{nsfw}, @{$v->{screenshots}}) {
- input id => 'nsfwhide_chk', type => 'checkbox', class => 'visuallyhidden', $self->authPref('show_nsfw') ? (checked => 'checked') : ();
- div class => 'mainbox', id => 'screenshots';
+ input id => 'nsfwhide_chk', type => 'checkbox', class => 'visuallyhidden', $self->authPref('show_nsfw') ? (checked => 'checked') : ();
+ div class => 'mainbox', id => 'screenshots';
+ if(grep $_->{nsfw}, @{$v->{screenshots}}) {
p class => 'nsfwtoggle';
txt 'Showing ';
i id => 'nsfwshown', scalar grep(!$_->{nsfw}, @{$v->{screenshots}});
@@ -913,8 +913,6 @@ sub _screenshots {
txt sprintf ' out of %d screenshot%s. ', scalar @{$v->{screenshots}}, @{$v->{screenshots}} == 1 ? '' : 's';
label for => 'nsfwhide_chk', class => 'fake_link', 'show/hide NSFW';
end;
- } else {
- div class => 'mainbox', id => 'screenshots';
}
h1 'Screenshots';