summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-24 17:33:36 +0200
committerYorhel <git@yorhel.nl>2020-04-24 17:33:44 +0200
commit7f662b2120c0b3a76e287b111e3f0bde9cc7d0ef (patch)
treece45a0ea2f3027b5e241ff4eaea617b941f65b93 /lib
parentf603d5182351beb9cdd63668757afd05028fcd63 (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.pm3
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};