From a31d7cb09830adea29231c8a4b2794d236c14704 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 28 Jun 2022 15:26:30 +0200 Subject: [PATCH] related to #1679 added badge in comments page --- admin/comments.php | 1 + admin/include/add_core_tabs.inc.php | 2 +- admin/themes/default/template/comments.tpl | 9 ++++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/comments.php b/admin/comments.php index d8ad110ba..fe1ba6c2c 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -211,6 +211,7 @@ $navbar = create_navigation_bar( ); $template->assign('navbar', $navbar); +$template->assign('ADMIN_PAGE_TITLE', l10n('User comments')); // +-----------------------------------------------------------------------+ // | sending html code | diff --git a/admin/include/add_core_tabs.inc.php b/admin/include/add_core_tabs.inc.php index e5a845ffd..bae9f8351 100644 --- a/admin/include/add_core_tabs.inc.php +++ b/admin/include/add_core_tabs.inc.php @@ -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' => ''.l10n('List'), 'url' => $my_base_url.'comments'); break; case 'users': diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl index 9e21d7872..334b21830 100644 --- a/admin/themes/default/template/comments.tpl +++ b/admin/themes/default/template/comments.tpl @@ -1,5 +1,7 @@ -{footer_script}{literal} +{footer_script} jQuery(document).ready(function(){ + $("h1").append(""+{$nb_total}+""); + function highlighComments() { jQuery(".checkComment").each(function() { var parent = jQuery(this).parent('tr'); @@ -41,10 +43,7 @@ jQuery(document).ready(function(){ }); }); -{/literal}{/footer_script} - -

{'User comments'|@translate}{if isset($TABSHEET_TITLE)} {$TABSHEET_TITLE}{/if} -

+{/footer_script}
{'All'|@translate} ({$nb_total})