summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-11-14 11:42:07 +0100
committerYorhel <git@yorhel.nl>2008-11-14 11:42:07 +0100
commite5d79246f94a08ebd8f421b84735416cf942c44a (patch)
tree562f98a48bcf12c798cb308f3b970f8ef0876632 /lib/VNDB/Handler/Producers.pm
parent4b2474e7972c63de91e5de2082ef3269afc8fb2e (diff)
Producer entries marked as hidden will not be shown
Unless you have the proper rights to undelete the page, that is. In that case you'll see the deletion message, but the page itself won't be hidden.
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 717bef74..4cecdaa7 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -22,6 +22,21 @@ sub page {
$self->htmlHeader(title => $p->{name});
$self->htmlMainTabs(p => $p);
+
+ if($p->{hidden}) {
+ div class => 'mainbox';
+ h1 $p->{name};
+ div class => 'warning';
+ h2 'Item deleted';
+ p;
+ lit qq|This item has been deleted from the database, File a request on the|
+ .qq| <a href="/t/p$pid">discussion board</a> to undelete this page.|;
+ end;
+ end;
+ end;
+ return $self->htmlFooter if !$self->authCan('del');
+ }
+
div class => 'mainbox producerpage';
p class => 'locked', 'Locked for editing' if $p->{locked};
h1 $p->{name};