diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-12-18 20:28:41 +0000 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-12-20 17:34:55 +0000 |
commit | 045cbb2a14aa03a758fc2b5d3bf31e14113446ec (patch) | |
tree | 868b775b5a6b51afb0d45cc70935909e8d301222 | |
parent | 9e889c39ed9971e31dc33f4dea73a91d6938b535 (diff) |
comments_display: display (?) for anon users, {x} for OpenIDs and {*} for local logins
This is a mockup of Joey's idea; to do it properly, the icons should
move to the basewiki or to a comments underlay, and {x} should be
replaced with an OpenID logo (if one with clear licensing even exists).
-rw-r--r-- | templates/comment.tmpl | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/templates/comment.tmpl b/templates/comment.tmpl index 19698cd33..3f2978675 100644 --- a/templates/comment.tmpl +++ b/templates/comment.tmpl @@ -2,27 +2,44 @@ <div class="comment-header"> Posted by + <TMPL_IF NAME="COMMENTUSER"> <span class="author"> +<TMPL_IF NAME="COMMENTOPENID"> + +<img src="/smileys/star_off.png" width="20" height="15" alt="[OpenID]" + title="Signed in with OpenID" /> +<a href="<TMPL_VAR NAME=COMMENTOPENID>"><TMPL_VAR NAME=COMMENTAUTHOR></a> + +<TMPL_ELSE> + +<img src="/smileys/star_on.png" width="15" height="15" alt="[Signed in]" + title="Signed in directly" /> <TMPL_IF NAME="COMMENTAUTHORURL"> <a href="<TMPL_VAR NAME=COMMENTAUTHORURL>"><TMPL_VAR NAME=COMMENTAUTHOR></a> <TMPL_ELSE> -<TMPL_VAR NAME=AUTHOR> +<TMPL_VAR NAME=COMMENTAUTHOR> +</TMPL_IF> + </TMPL_IF> </span> -<TMPL_ELSE> + +<TMPL_ELSE><!-- !COMMENTUSER --> + <TMPL_IF NAME=COMMENTIP> -<span class="author"> -<TMPL_VAR NAME=COMMENTIP> -</span> +<span class="author" title="Unauthenticated, from <TMPL_VAR NAME=COMMENTIP>"> +<TMPL_ELSE><!-- !COMMENTIP --> +<span class="author" title="Unauthenticated, from unknown IP address"> +</TMPL_IF> +<img src="/smileys/question.png" width="15" height="15" alt="[Unauthenticated]" /> +<TMPL_IF NAME="AUTHORURL"> +<a href="<TMPL_VAR NAME=AUTHORURL>"><TMPL_VAR NAME=AUTHOR></a> <TMPL_ELSE> -unknown IP address +<TMPL_VAR NAME=AUTHOR> </TMPL_IF> +</span> -<TMPL_IF NAME=AUTHOR> -(<span class="claimedauthor"><TMPL_IF NAME="AUTHORURL"><a href="<TMPL_VAR NAME=AUTHORURL>"><TMPL_VAR NAME=AUTHOR></a><TMPL_ELSE><TMPL_VAR NAME=AUTHOR></TMPL_IF></span>) -</TMPL_IF> -</TMPL_IF> +</TMPL_IF><!-- !COMMENTUSER --> (<TMPL_VAR CTIME>) </div> |