diff options
author | Yorhel <git@yorhel.nl> | 2019-12-29 10:11:18 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-29 10:11:20 +0100 |
commit | 40ef00116cc12aef4ce08fc1136e329c58abda4b (patch) | |
tree | 92b73b8786e2aa927f0510cdcb1ad66e86ccd2da /lib/VNDB/Util/BrowseHTML.pm | |
parent | f18f6925d52029fd5e55585a627cf07052798dd7 (diff) |
ulist: Display labels on VN browser
Replaces the old "wishlist status" column that I removed earlier. It's
kind of awkward, but at least the functionality still exists now.
Diffstat (limited to 'lib/VNDB/Util/BrowseHTML.pm')
-rw-r--r-- | lib/VNDB/Util/BrowseHTML.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Util/BrowseHTML.pm b/lib/VNDB/Util/BrowseHTML.pm index 7846d5c0..1a7e3878 100644 --- a/lib/VNDB/Util/BrowseHTML.pm +++ b/lib/VNDB/Util/BrowseHTML.pm @@ -160,9 +160,10 @@ sub htmlBrowseVN { if($f->{vnlist}) { td class => 'tc7'; lit sprintf '<b class="%s">%d/%d</b>', $l->{userlist_obtained} == $l->{userlist_all} ? 'done' : 'todo', $l->{userlist_obtained}, $l->{userlist_all} if $l->{userlist_all}; + abbr title => join(', ', $l->{vnlist_labels}->@*), scalar $l->{vnlist_labels}->@* if $l->{vnlist_labels} && $l->{vnlist_labels}->@*; + abbr title => 'No labels', ' ' if $l->{vnlist_labels} && !$l->{vnlist_labels}->@*; end 'td'; } - td class => 'tc8', defined($l->{wstat}) ? $WISHLIST_STATUS{$l->{wstat}} : '' if $f->{wish}; td class => 'tc2'; $_ ne 'oth' && cssicon $_, $PLATFORM{$_} for (sort @{$l->{c_platforms}}); |