aboutsummaryrefslogtreecommitdiff
path: root/templates/inlinepage.tmpl
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-17 19:38:02 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-17 19:38:02 -0500
commitcd7ac8f72a43a53aeca3b5e8daf906e990420016 (patch)
tree2a2a0ed6550323fd9b422fccec36f81d907be9ea /templates/inlinepage.tmpl
parent5feffc8b0b953856052c09dd431984e2e835b439 (diff)
downloadikiwiki-cd7ac8f72a43a53aeca3b5e8daf906e990420016.tar
ikiwiki-cd7ac8f72a43a53aeca3b5e8daf906e990420016.tar.gz
add Comments link when displaying a page inline
This link will supplant the usual Discussion link for pages that have comments enabled.
Diffstat (limited to 'templates/inlinepage.tmpl')
-rw-r--r--templates/inlinepage.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl
index 984d33cef..3c0b93315 100644
--- a/templates/inlinepage.tmpl
+++ b/templates/inlinepage.tmpl
@@ -58,9 +58,13 @@ License: <TMPL_VAR LICENSE>
<TMPL_IF NAME="EDITURL">
<li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li>
</TMPL_IF>
+<TMPL_IF NAME="COMMENTSLINK">
+<li><TMPL_VAR COMMENTSLINK></li>
+<TMPL_ELSE>
<TMPL_IF NAME="DISCUSSIONLINK">
<li><TMPL_VAR DISCUSSIONLINK></li>
</TMPL_IF>
+</TMPL_IF>
</ul>
</div><!--.actions-->
</TMPL_IF>