BC updated

This commit is contained in:
fbsanchez 2019-05-29 17:10:21 +02:00
parent 47c9220cbb
commit 3c730fbedf
3 changed files with 25 additions and 5 deletions

View File

@ -708,7 +708,13 @@ if ($id_agente) {
'',
$config['item_title_size_text'],
'',
__('Resources').ui_print_breadcrums($tab_name)
ui_print_breadcrums(
[
__('Resources'),
__('Manage agents'),
'<span class="breadcrumb_active">'.$tab_name.'</span>',
]
)
);
} else {
// Create agent.
@ -723,7 +729,13 @@ if ($id_agente) {
'',
GENERIC_SIZE_TEXT,
'',
__('Resources').ui_print_breadcrums('Create agent')
ui_print_breadcrums(
[
__('Resources'),
__('Manage agents'),
'<span class="breadcrumb_active">'.__('Create agent').'</span>',
]
)
);
}

View File

@ -5020,10 +5020,12 @@ function ui_get_sorting_arrows($url_up, $url_down, $selectUp, $selectDown)
*/
function ui_print_breadcrums($tab_name)
{
if ($tab_name != '') {
if (is_array($tab_name)) {
return join(' / ', $tab_name);
} else if ($tab_name != '') {
$section = str_replace('_', ' ', $tab_name);
$section = ucwords($section);
$section = ' / <span class="breadcrumb_active">'.___($section).'</span>';
$section = ' / '.___($section);
}
return $section;

View File

@ -1498,7 +1498,13 @@ ui_print_page_header(
'',
$config['item_title_size_text'],
'',
__('Resources').ui_print_breadcrums($tab_name)
ui_print_breadcrums(
[
__('Monitoring'),
__('View'),
'<span class="breadcrumb_active">'.$tab_name.'</span>',
]
)
);