diff options
author | Yorhel <git@yorhel.nl> | 2021-01-02 09:24:24 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-01-02 09:24:26 +0100 |
commit | b32c9d40ee8b9a29aa1acf2fef3376aee28d16d5 (patch) | |
tree | 71508142830cb5525d764e0d0163088eb1892408 /lib/VNWeb | |
parent | 56ff6519f3a53c499470ed11be91c01cfdaf02be (diff) |
HTML: Refer to VN entry on deleted release pages
So people getting a notification can find out more easily which VN it
was linked to.
Diffstat (limited to 'lib/VNWeb')
-rw-r--r-- | lib/VNWeb/HTML.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm index d537bd56..005e0cc9 100644 --- a/lib/VNWeb/HTML.pm +++ b/lib/VNWeb/HTML.pm @@ -452,6 +452,12 @@ sub _hidden_msg_ { div_ class => 'warning', sub { h2_ 'Item deleted'; p_ sub { + if($o->{type} eq 'r' && $o->{dbobj}{vn}) { + txt_ 'This was a release entry for '; + join_ ',', sub { a_ href => "/v$_->{vid}", $_->{title} }, $o->{dbobj}{vn}->@*; + txt_ '.'; + br_; + } txt_ 'This item has been deleted from the database. You may file a request on the '; a_ href => '/t/'._board_id($o->{type}, $o->{dbobj}), "discussion board"; txt_ ' if you believe that this entry should be restored.'; |