mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1679 added badge in comments page
This commit is contained in:
@@ -211,6 +211,7 @@ $navbar = create_navigation_bar(
|
||||
);
|
||||
|
||||
$template->assign('navbar', $navbar);
|
||||
$template->assign('ADMIN_PAGE_TITLE', l10n('User comments'));
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
|
||||
@@ -60,7 +60,7 @@ function add_core_tabs($sheets, $tab_id)
|
||||
|
||||
case 'comments':
|
||||
global $my_base_url;
|
||||
$sheets[''] = array('caption' => l10n('User comments'), 'url' => $my_base_url.'comments');
|
||||
$sheets[''] = array('caption' => '<span class="icon-menu"></span>'.l10n('List'), 'url' => $my_base_url.'comments');
|
||||
break;
|
||||
|
||||
case 'users':
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{footer_script}{literal}
|
||||
{footer_script}
|
||||
jQuery(document).ready(function(){
|
||||
$("h1").append("<span class='badge-number'>"+{$nb_total}+"</span>");
|
||||
|
||||
function highlighComments() {
|
||||
jQuery(".checkComment").each(function() {
|
||||
var parent = jQuery(this).parent('tr');
|
||||
@@ -41,10 +43,7 @@ jQuery(document).ready(function(){
|
||||
});
|
||||
|
||||
});
|
||||
{/literal}{/footer_script}
|
||||
|
||||
<h2>{'User comments'|@translate}{if isset($TABSHEET_TITLE)} {$TABSHEET_TITLE}{/if}
|
||||
</h2>
|
||||
{/footer_script}
|
||||
|
||||
<div class="commentFilter">
|
||||
<a href="{$F_ACTION}&filter=all" class="{if $filter == 'all'}commentFilterSelected{/if}">{'All'|@translate}</a> ({$nb_total})
|
||||
|
||||
Reference in New Issue
Block a user