{* * $Revision: 17673 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *} {if !empty($comment.subject)}

{$comment.subject|markup}

{/if} {assign var="needSeparator" value="false"} {if $can.edit} {g->text text="edit"} {assign var="needSeparator" value="true"} {/if} {if $can.delete} {if $needSeparator}|{/if} {g->text text="delete"} {assign var="needSeparator" value="true"} {/if} {if !empty($can.markNotSpam)} {if $needSeparator}|{/if} {g->text text="mark as not spam"} {assign var="needSeparator" value="true"} {/if} {if !empty($can.markSpam)} {if $needSeparator}|{/if} {g->text text="mark as spam"} {assign var="needSeparator" value="true"} {/if} {assign var="commentText" value=$comment.comment|markup} {if isset($truncate)} {assign var="truncated" value=$commentText|entitytruncate:$truncate} {/if} {if isset($truncate) && ($truncated != $commentText)} {if $needSeparator}| {/if} {g->text text="show full"}

{$truncated}

{else}

{$commentText}

{/if}

{capture name="date"}{g->date timestamp=$comment.date style="datetime"}{/capture} {if empty($comment.author)} {if $can.edit} {g->text text="Posted by %s on %s (%s)" arg1=$user.fullName|default:$user.userName arg2=$smarty.capture.date arg3=$comment.host} {else} {g->text text="Posted by %s on %s" arg1=$user.fullName|default:$user.userName arg2=$smarty.capture.date} {/if} {else} {if $can.edit} {g->text text="Posted by %s (guest) on %s (%s)" arg1=$comment.author|default:$user.userName arg2=$smarty.capture.date arg3=$comment.host} {else} {g->text text="Posted by %s (guest) on %s" arg1=$comment.author|default:$user.userName arg2=$smarty.capture.date} {/if} {/if}