diff options
author | Yorhel <git@yorhel.nl> | 2022-09-27 12:49:51 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-09-28 09:35:55 +0200 |
commit | a5b49b88ba61a406b06f71fe91c3d8ce13ef058a (patch) | |
tree | 68b8ae4099560cdaa5996b36b9dd13b4b64be65a /lib | |
parent | b5834c47e4dff03ebfc97be3bed06a86d1c53ca5 (diff) |
Releases::Page: Merge empty-titled languages on display
https://vndb.org/t17804.130
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/Releases/Page.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm index 523823e7..1e783512 100644 --- a/lib/VNWeb/Releases/Page.pm +++ b/lib/VNWeb/Releases/Page.pm @@ -144,8 +144,9 @@ sub _infotable_ { td_ sub { table_ sub { tr_ class => 'nostripe title', sub { - td_ sub { - abbr_ class => "icons lang $_->{lang}", title => $LANGUAGE{$_->{lang}}, ''; + td_ style => 'white-space: nowrap', sub { + abbr_ class => "icons lang $_->{lang}", title => $LANGUAGE{$_->{lang}}, '' + for ($_, $_->{lang} eq $r->{olang} ? grep !defined $_->{title}, $r->{titles}->@* : ()); }; td_ sub { span_ lang_attr($_->{lang}), $_->{title}; @@ -155,7 +156,7 @@ sub _infotable_ { txt_ $_->{latin}; } } - } for $r->{titles}->@*; + } for grep defined $_->{title}, $r->{titles}->@*; }; }; }; |