aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-30 21:07:31 -0400
committerJoey Hess <joey@kitenet.net>2010-06-30 21:07:31 -0400
commit28cdf2c341fa633efbb3461acd2e1109f38b8da7 (patch)
treed0a0c84e9873d6a19c3fb68e22ae52acff283f96 /templates
parent29fd100e9f4e71fb85505d932184ffd5e3f26242 (diff)
downloadikiwiki-28cdf2c341fa633efbb3461acd2e1109f38b8da7.tar
ikiwiki-28cdf2c341fa633efbb3461acd2e1109f38b8da7.tar.gz
comment.tmpl: Fix up display when inline uses it to display a non-comment page. (Such as a discussion page.)
Diffstat (limited to 'templates')
-rw-r--r--templates/comment.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/comment.tmpl b/templates/comment.tmpl
index fa90e6d26..c2ee5a371 100644
--- a/templates/comment.tmpl
+++ b/templates/comment.tmpl
@@ -14,8 +14,8 @@
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
<TMPL_IF HTML5><header class="comment-header"><TMPL_ELSE><div class="comment-header"></TMPL_IF>
-Comment by
<TMPL_IF COMMENTUSER>
+Comment by
<TMPL_IF COMMENTOPENID>
<span class="author" title="OpenID">
<a href="<TMPL_VAR COMMENTOPENID>"><TMPL_VAR COMMENTAUTHOR></a>
@@ -30,6 +30,8 @@ Comment by
</span>
</TMPL_IF>
<TMPL_ELSE>
+<TMPL_IF AUTHOR>
+Comment by
<TMPL_IF COMMENTIP>
<span class="author" title="Unauthenticated, from <TMPL_VAR COMMENTIP>">
<TMPL_ELSE>
@@ -40,6 +42,7 @@ Comment by
<TMPL_ELSE>
<TMPL_VAR AUTHOR>
</TMPL_IF>
+</TMPL_IF>
</span>
</TMPL_IF>
&mdash; <TMPL_VAR CTIME>