aboutsummaryrefslogtreecommitdiff
path: root/templates/page.tmpl
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-18 20:01:08 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-20 17:34:55 +0000
commit9e889c39ed9971e31dc33f4dea73a91d6938b535 (patch)
tree1dbe54a2dad026e26299a86c3aeab7e52526f72f /templates/page.tmpl
parent8ed94c0a18435f3a1934e19949153c7ccf8ec78a (diff)
downloadikiwiki-9e889c39ed9971e31dc33f4dea73a91d6938b535.tar
ikiwiki-9e889c39ed9971e31dc33f4dea73a91d6938b535.tar.gz
comments: Rename COMMENTURL to ADDCOMMENTURL to avoid confusion with COMMENTAUTHORURL
Also refactor page.tmpl to use if/else rather than unless/if.
Diffstat (limited to 'templates/page.tmpl')
-rw-r--r--templates/page.tmpl9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 21abc979d..f75491127 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -74,13 +74,12 @@
<TMPL_IF COMMENTS>
<div id="comments">
<TMPL_VAR COMMENTS>
-<TMPL_UNLESS COMMENTURL>
-<div class="addcomment">Comments on this page are closed.</div>
-</TMPL_UNLESS>
-<TMPL_IF COMMENTURL>
+<TMPL_IF ADDCOMMENTURL>
<div class="addcomment">
-<a href="<TMPL_VAR COMMENTURL>">Add a comment</a>
+<a href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a>
</div>
+<TMPL_ELSE>
+<div class="addcomment">Comments on this page are closed.</div>
</TMPL_IF>
</div>
</TMPL_IF>