]> sipb.mit.edu Git - ikiwiki.git/blobdiff - templates/comment.tmpl
escape pagespec
[ikiwiki.git] / templates / comment.tmpl
index fa90e6d26f87d756339dd1773a79fb43fc137da5..c16ca7c810c78f6cabac99bfed6b5bfb19c8b72c 100644 (file)
@@ -1,6 +1,10 @@
 <TMPL_IF HTML5><article class="comment" id="<TMPL_VAR COMMENTID>">
 <TMPL_ELSE><div class="comment" id="<TMPL_VAR COMMENTID>"></TMPL_IF>
 
+<TMPL_IF COMMENTAUTHORAVATAR><div class="comment-avatar">
+<img src="<TMPL_VAR COMMENTAUTHORAVATAR>" alt="" />
+</div></TMPL_IF>
+
 <TMPL_IF HTML5><header class="comment-subject"><TMPL_ELSE><div class="comment-subject"></TMPL_IF>
 <TMPL_IF PERMALINK>
 <a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
@@ -14,8 +18,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 +34,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 +46,7 @@ Comment by
 <TMPL_ELSE>
 <TMPL_VAR AUTHOR>
 </TMPL_IF>
+</TMPL_IF>
 </span>
 </TMPL_IF>
 &mdash; <TMPL_VAR CTIME>
@@ -55,4 +62,5 @@ Comment by
 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF>
 </TMPL_IF>
 
+<div style="clear: both"></div>
 <TMPL_IF HTML5></article><TMPL_ELSE></div></TMPL_IF>