summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-16 11:51:22 +0100
committerYorhel <git@yorhel.nl>2019-12-16 11:51:24 +0100
commitc6fc20d5e878ed0f952bdb5eb7fc8f783a873966 (patch)
tree0f69da8fc0f68e4b0dd92e99870324dc95d24364
parentcf7680cbf2d1088ed2ff087c9b35c3ccc52225f9 (diff)
Discussions::Index: Add "Start a new thread" link
For convenience and consistency with the board view.
-rw-r--r--lib/VNWeb/Discussions/Index.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VNWeb/Discussions/Index.pm b/lib/VNWeb/Discussions/Index.pm
index 565cbc49..90ac31b1 100644
--- a/lib/VNWeb/Discussions/Index.pm
+++ b/lib/VNWeb/Discussions/Index.pm
@@ -11,6 +11,9 @@ TUWF::get qr{/t}, sub {
h1_ 'Discussion board index';
boardtypes_ 'index';
boardsearch_;
+ p_ class => 'center', sub {
+ a_ href => '/t/ge/new', 'Start a new thread';
+ } if can_edit t => {};
}
};