summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-08-23 11:15:19 +0200
committerYorhel <git@yorhel.nl>2021-08-23 11:15:19 +0200
commitd4877ff1f5424cb669b203397ffcb3e77e8ba0d8 (patch)
treefd909b79367df2f5167a8a50d0f2e395db4bafc9
parent64a4e92ad48813afba045e0b39b3e2b363a42b83 (diff)
VNLengthVotes: Minor style changes and persistent ignore selection
-rw-r--r--lib/VNWeb/HTML.pm2
-rw-r--r--lib/VNWeb/VN/Length.pm7
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm
index 78e59f2f..0b77408e 100644
--- a/lib/VNWeb/HTML.pm
+++ b/lib/VNWeb/HTML.pm
@@ -125,7 +125,7 @@ sub vnlength_ {
my $h = floor($l/60);
my $m = $l % 60;
txt_ "${h}h" if $h;
- b_ class => 'grayedout', "${m}m" if $h && $m;
+ small_ "${m}m" if $h && $m;
txt_ "${m}m" if !$h && $m;
}
diff --git a/lib/VNWeb/VN/Length.pm b/lib/VNWeb/VN/Length.pm
index 53e147f4..e7a460eb 100644
--- a/lib/VNWeb/VN/Length.pm
+++ b/lib/VNWeb/VN/Length.pm
@@ -57,15 +57,14 @@ sub listing_ {
abbr_ class => "icons lang $_", title => $LANGUAGE{$_}, '' for sort keys %l;
join_ ',', sub { a_ href => "/$_->{id}", $_->{id} }, sort { idcmp $a->{id}, $b->{id} } $_->{rel}->@*;
};
- td_ class => 'tc6', sub { lit_ bb_format $_->{notes}, inline => 1 };
+ td_ class => 'tc6'.($_->{ignore}?' grayedout':''), sub { lit_ bb_format $_->{notes}, inline => 1 };
td_ class => 'tc7', sub {
select_ name => "lv$_->{id}", sub {
- option_ value => '', '--';
+ option_ value => $_->{ignore} ? 'noign' : '', '--';
option_ value => 's0', 'slow';
option_ value => 's1', 'normal';
option_ value => 's2', 'fast';
- option_ value => 'ign', 'ignore' if !$_->{ignore};
- option_ value => 'noign', 'unignore' if $_->{ignore};
+ option_ value => $_->{ignore} ? '' : 'ign', selected => $_->{ignore}?'':undef, 'ignore';
};
} if auth->permDbmod;
} for @$list;