]> sipb.mit.edu Git - ikiwiki.git/commitdiff
page.tmpl: optionally include "add comment" link
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sun, 23 Nov 2008 17:07:07 +0000 (17:07 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:04 +0000 (21:14 +0000)
templates/page.tmpl

index 94412078a4a2bdd0f0f808645fef1b57019a4a14..ea50fb722570c9a7fff7855a48ba7ba476802ef8 100644 (file)
 <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">