diff options
author | Francois Marier <francois@debian.org> | 2011-03-05 20:33:07 +1300 |
---|---|---|
committer | Francois Marier <francois@debian.org> | 2011-03-30 20:59:17 +1300 |
commit | 7723e94218a8c526fc8d869086c05dd382268649 (patch) | |
tree | 8a4e96e7a2768a642e92f5a12d4182c039264562 /templates | |
parent | 3e5197c9671e01c73bdd0c281f56a61b67995c22 (diff) |
comments: add avatar picture of comment author
Use Libravatar::URL to pull the avatar picture for the comment
author if we have an email address for him/her.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/comment.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/comment.tmpl b/templates/comment.tmpl index c2ee5a371..c16ca7c81 100644 --- a/templates/comment.tmpl +++ b/templates/comment.tmpl @@ -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> @@ -58,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> |