summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-05 09:09:13 +0200
committerYorhel <git@yorhel.nl>2009-04-05 09:09:13 +0200
commit23fe772eeb533bfcfaa1f2381d515480ac736fdf (patch)
tree064b5175ff9434929b44be414fc6dd3c01f0460b
parent426b13cd58e975dd2dbf4c59bcca37fb46b0c56e (diff)
Show 'denied tags' link on /g
-rw-r--r--lib/VNDB/Handler/Tags.pm30
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index 34208792..4c5aca12 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -632,22 +632,24 @@ sub tagindex {
# Moderation queue
div class => 'mainbox threelayout last';
- a class => 'right', href => '/g/list?t=0;o=d;s=added', 'Moderation queue';
h1 'Awaiting moderation';
$r = $self->dbTagGet(state => 0, order => 'added DESC', results => 10);
- if(@$r) {
- ul;
- for (@$r) {
- li;
- txt age $_->{added};
- txt ' ';
- a href => "/g$_->{id}", $_->{name};
- end;
- }
- end;
- } else {
- p 'Moderation queue empty! yay!';
- }
+ ul;
+ li "Moderation queue empty! yay!" if !@$r;
+ for (@$r) {
+ li;
+ txt age $_->{added};
+ txt ' ';
+ a href => "/g$_->{id}", $_->{name};
+ end;
+ }
+ li;
+ txt "\n";
+ a href => '/g/list?t=0;o=d;s=added', 'Moderation queue';
+ txt ' - ';
+ a href => '/g/list?t=1;o=d;s=added', 'Denied tags';
+ end;
+ end;
end;
clearfloat;
$self->htmlFooter;