{* this is a copy of admin/theme/defaults/template/comments.tpl a bit modified *} {footer_script}{literal} jQuery(document).ready(function(){ function highlighComments() { jQuery(".checkComment").each(function() { var parent = jQuery(this).parent('tr'); if (jQuery(this).children("input[type=checkbox]").is(':checked')) { jQuery(parent).addClass('selectedComment'); } else { jQuery(parent).removeClass('selectedComment'); } }); } jQuery(".checkComment").click(function(event) { var checkbox = jQuery(this).children("input[type=checkbox]"); if (event.target.type !== 'checkbox') { jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked')); } highlighComments(); }); jQuery("#commentSelectAll").click(function () { jQuery(".checkComment input[type=checkbox]").attr('checked', true); highlighComments(); return false; }); jQuery("#commentSelectNone").click(function () { jQuery(".checkComment input[type=checkbox]").attr('checked', false); highlighComments(); return false; }); jQuery("#commentSelectInvert").click(function () { jQuery(".checkComment input[type=checkbox]").each(function() { jQuery(this).attr('checked', !$(this).is(':checked')); }); highlighComments(); return false; }); }); {/literal}{/footer_script}

{'Pending Comments'|@translate} [{'Albums'|@translate}]

{if !empty($comments) }
{foreach from=$comments item=comment name=comment} {/foreach}

{$comment.CAT_NAME}

{$comment.AUTHOR} - {$comment.DATE}

{$comment.CONTENT}

{'Select:'|@translate} {'All'|@translate}, {'None'|@translate}, {'Invert'|@translate}

{else} {'No pending comment'|@translate} {/if}