summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r--lib/VNDB/Handler/Producers.pm15
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
2 files changed, 3 insertions, 14 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index c770e435..234280b7 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -28,6 +28,7 @@ sub page {
$self->htmlHeader(title => $p->{name});
$self->htmlMainTabs(p => $p);
+ return if $self->htmlHiddenMessage('p', $p);
if($rev) {
my $prev = $rev && $rev > 1 && $self->dbProducerGet(id => $pid, rev => $rev-1, what => 'changes')->[0];
@@ -41,20 +42,6 @@ sub page {
);
}
- 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};
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 8ec32143..cb5e5576 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -44,6 +44,8 @@ sub page {
$self->htmlHeader(title => $v->{title});
$self->htmlMainTabs('v', $v);
+ return if $self->htmlHiddenMessage('v', $v);
+
div class => 'mainbox';
h1 $v->{title};
h2 class => 'alttitle', $v->{original} if $v->{original};