diff options
author | Yorhel <git@yorhel.nl> | 2020-04-24 17:33:36 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-04-24 17:33:44 +0200 |
commit | 7f662b2120c0b3a76e287b111e3f0bde9cc7d0ef (patch) | |
tree | ce45a0ea2f3027b5e241ff4eaea617b941f65b93 /lib | |
parent | f603d5182351beb9cdd63668757afd05028fcd63 (diff) |
VN::Page: Fix display of deleted staff aliases in diffs
This is possible because staff aliases can be removed while old
revisions can still refer to removed aliases.
The previous implementation wouldn't even display the relation at all.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/VN/Page.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNWeb/VN/Page.pm b/lib/VNWeb/VN/Page.pm index 0d2d440d..0adb4b0d 100644 --- a/lib/VNWeb/VN/Page.pm +++ b/lib/VNWeb/VN/Page.pm @@ -67,7 +67,8 @@ sub rev_ { txt_ " [$_->{note}]" if $_->{note}; }], [ seiyuu => 'Seiyuu', fmt => sub { - a_ href => "/s$_->{sid}", title => $_->{original}||$_->{name}, $_->{name}; + a_ href => "/s$_->{sid}", title => $_->{original}||$_->{name}, $_->{name} if $_->{sid}; + b_ class => 'grayedout', '[removed alias]' if !$_->{sid}; txt_ ' as '; a_ href => "/c$_->{cid}", title => $_->{char_original}||$_->{char_name}, $_->{char_name}; txt_ " [$_->{note}]" if $_->{note}; |