summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-11-23 17:07:07 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 21:14:04 +0000
commit1c1437995cb215c99cd4679eebd811576f020bc8 (patch)
tree0c130575f425d7b448970befc3cfa1873b107b94 /templates
parent8776c76e322b3e3d900ae9274820364cc590f4d7 (diff)
page.tmpl: optionally include "add comment" link
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 94412078a..ea50fb722 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -71,6 +71,16 @@
<div id="comments">
<TMPL_VAR COMMENTS>
</div>
+
+<TMPL_UNLESS COMMENTURL>
+<div class="addcomment">Comments on this page are closed.</div>
+</TMPL_UNLESS>
+</TMPL_IF>
+
+<TMPL_IF COMMENTURL>
+<div class="addcomment">
+<a href="<TMPL_VAR COMMENTURL>">Add a comment</a>
+</div>
</TMPL_IF>
<div id="footer" class="pagefooter">