related to #1679 added badge in comments page

This commit is contained in:
Matthieu Leproux
2022-06-28 15:26:30 +02:00
parent a2b1ef2c67
commit a31d7cb098
3 changed files with 6 additions and 6 deletions

View File

@@ -211,6 +211,7 @@ $navbar = create_navigation_bar(
);
$template->assign('navbar', $navbar);
$template->assign('ADMIN_PAGE_TITLE', l10n('User comments'));
// +-----------------------------------------------------------------------+
// | sending html code |

View File

@@ -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':

View File

@@ -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}&amp;filter=all" class="{if $filter == 'all'}commentFilterSelected{/if}">{'All'|@translate}</a> ({$nb_total})