Remove text from header and only indicated name of networkmap or agents. Gitlab: #353

This commit is contained in:
m-lopez-f 2017-02-22 13:48:11 +01:00
parent 724b2e469d
commit 1e4d784e72
4 changed files with 13 additions and 51 deletions

View File

@ -557,9 +557,10 @@ if ($id_agente) {
default:
break;
}
$agent = db_get_row ('tagente', 'id_agente', $id_agente);
ui_print_page_header ($agent["nombre"],
"images/setup.png", false, $help_header , true, $onheader, false, '', GENERIC_SIZE_TEXT, $agent["alias"] . ' ' . $tab_description);
ui_print_page_header ( agents_get_alias ($id_agente),
"images/setup.png", false, $help_header , true, $onheader,
false, '', $config['item_title_size_text']);
}
else {
// Create agent

View File

@ -2403,8 +2403,10 @@ function ui_get_full_url ($url = '', $no_proxy = false, $add_name_php_file = fal
* @return string Header HTML
*/
function ui_print_page_header ($title, $icon = "", $return = false,
$help = "", $godmode = false, $options = "", $modal = false,
$message = "", $numChars = GENERIC_SIZE_TEXT, $alias = "") {
function ui_print_page_header ($title, $icon = "", $return = false, $help = "", $godmode = false, $options = "", $modal = false, $message = "", $numChars = GENERIC_SIZE_TEXT, $alias = "") {
$title = io_safe_input_html($title);
if (($icon == "") && ($godmode == true)) {
$icon = "images/gm_setup.png";

View File

@ -750,9 +750,9 @@ else {
}
if (!$dash_mode) {
ui_print_page_header(sprintf(__('Networkmap - %s'),
io_safe_output($networkmap['name'])), "images/bricks.png",
false, "network_map_enterprise", false, $buttons);
ui_print_page_header(io_safe_output($networkmap['name']),
"images/bricks.png", false, "network_map_enterprise",
false, $buttons, false, '', $config['item_title_size_text']);
}
$nodes_and_relations = networkmap_process_networkmap($id);

View File

@ -1209,49 +1209,8 @@ foreach ($config['extensions'] as $extension) {
}
}
$header_description = '';
switch($tab) {
case "main":
break;
case "data":
$header_description = ' - ' . __('Last data');
break;
case "alert":
$header_description = ' - ' . __('Alerts');
break;
case "inventory":
$header_description = ' - ' . __('Inventory');
break;
case "collection":
$header_description = ' - ' . __('Collection');
break;
case "gis":
$header_description = ' - ' . __('Gis');
break;
case "custom_fields":
$header_description = ' - ' . __('Custom fields');
break;
case "graphs":
$header_description = ' - ' . __('Graphs');
break;
case "policy":
$header_description = ' - ' . __('Policy');
break;
case "ux_console_tab":
$header_description = ' - ' . __('UX Console');
break;
case "incident":
$header_description = ' - ' . __('Incident');
break;
case "url_address":
$header_description = ' - ' . __('Url address');
break;
case "ehorus":
$header_description = ' - ' . __('eHorus');
break;
}
ui_print_page_header($agent["nombre"] , $icon, false, "", false, $onheader, false, '', GENERIC_SIZE_TEXT, $agent["alias"] . $header_description);
ui_print_page_header(agents_get_alias($id_agente), $icon, false,
"", false, $onheader, false, '', $config['item_title_size_text']);
switch ($tab) {