{* * $Revision: 17586 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *} {include file="gallery:modules/comment/templates/ChangeComment.js.tpl"}

{g->text text="Latest Comments"}

{if !empty($status)}

{if isset($status.changed)} {g->text text="Comment changed successfully"} {/if}

{/if} {if empty($ShowAllComments.comments)}

{g->text text="There are no comments for this item"}

{else} {if $ShowAllComments.navigator.pageCount > 1} {g->block type="core.Navigator" class="commentNavigator" navigator=$ShowAllComments.navigator currentPage=$ShowAllComments.navigator.page totalPages=$ShowAllComments.navigator.pageCount} {/if} {foreach from=$ShowAllComments.comments item=comment} {/foreach}
{assign var="item" value=$ShowAllComments.itemData[$comment.parentId]} {if isset($item.thumb)} {g->image item=$item image=$item.thumb maxSize=120} {else} {$item.title|default:$item.pathComponent|markup} {/if}
{include file="gallery:modules/comment/templates/Comment.tpl" comment=$comment can=$ShowAllComments.can[$comment.id] item=$item user=$ShowAllComments.commenters[$comment.commenterId] ajaxChangeCallback="changeComment" truncate=1024}
{/if}