comments_display.tmpl: preferentially use confirmed username, but fall back to claimed author if unauthenticated

This still isn't quite right (it displays the IP address twice if the user
doesn't specify a name).
master
Simon McVittie 2008-12-11 02:24:27 +00:00
parent 1698364da0
commit 370c1b87c9
1 changed files with 25 additions and 7 deletions

View File

@ -2,14 +2,32 @@
<div class="comments-header">
Posted by
<TMPL_IF NAME="AUTHOR">
<span class="author">
<TMPL_IF NAME="AUTHORURL">
<a href="<TMPL_VAR NAME=AUTHORURL>"><TMPL_VAR NAME=AUTHOR></a>
<TMPL_IF NAME="COMMENTUSER">
<span class="author">
<TMPL_IF NAME="COMMENTAUTHORURL">
<a href="<TMPL_VAR NAME=COMMENTAUTHORURL>"><TMPL_VAR NAME=COMMENTAUTHOR></a>
<TMPL_ELSE>
<TMPL_VAR NAME=AUTHOR>
</TMPL_IF>
</span>
<TMPL_ELSE>
<TMPL_VAR NAME=AUTHOR>
</TMPL_IF>
</span>
<TMPL_IF NAME=COMMENTIP>
<span class="author">
<TMPL_VAR NAME=COMMENTIP>
</span>
<TMPL_ELSE>
unknown IP address
</TMPL_IF>
<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_VAR CTIME>)