Ignore:
Timestamp:
Oct 22, 2013, 10:39:10 PM (11 years ago)
Author:
plg
Message:

feature 2920 added: change admin screen "pending comments" to "all comments".
Now the administrator can filter on "all" or "pending" with a single click.

In the admin menu, we display the number of pending comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/comments.tpl

    r22812 r25084  
    4444{/literal}{/footer_script}
    4545
    46 <h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
     46<h2>{'User comments'|@translate} {$TABSHEET_TITLE}</h2>
     47
     48<p style="text-align:left;margin-left:1em;">
     49  <a href="{$F_ACTION}&amp;filter=all" class="{if $filter == 'all'}commentFilterSelected{/if}">{'All'|@translate}</a> ({$nb_total})
     50  | <a href="{$F_ACTION}&amp;filter=pending" class="{if $filter == 'pending'}commentFilterSelected{/if}">{'Waiting'|@translate}</a> ({$nb_pending})
     51</p>
    4752
    4853{if !empty($comments) }
     
    5863  <div class="comment">
    5964    <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a>
    60     <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
     65    <p class="commentHeader">{if $comment.IS_PENDING}<span class="pendingFlag">{'Waiting'|@translate}</span> - {/if}<strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
    6166    <blockquote>{$comment.CONTENT}</blockquote>
    6267  </div>
Note: See TracChangeset for help on using the changeset viewer.