Merge branch '230-se-descojona-la-solapa-cuando-el-nombre-del-servicio-tiene-mas-de-10-caracteres-open' into 'develop'

Show only service name in green header for service maps - #230

See merge request !125
This commit is contained in:
Enrique Camargo 2017-02-07 14:13:01 +01:00
commit 97c17595bd
1 changed files with 6 additions and 0 deletions

View File

@ -2416,8 +2416,14 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "",
$buffer .= '<ul class="mn"><li class="' . $type . '">&nbsp;' . '&nbsp; '; $buffer .= '<ul class="mn"><li class="' . $type . '">&nbsp;' . '&nbsp; ';
if(strpos($title, "Monitoring » Services »") != -1){
$title = str_replace("Monitoring » Services » Service Map » ",'',$title);
}
$buffer .= '<span style="margin-right:10px;">' . $buffer .= '<span style="margin-right:10px;">' .
ui_print_truncate_text($title, 'item_title'); ui_print_truncate_text($title, 'item_title');
if ($modal && !enterprise_installed()){ if ($modal && !enterprise_installed()){
$buffer .= " $buffer .= "
<div id='".$message."' class='publienterprise' title='Community version' style='float: right;margin-top: -2px !important; margin-left: 2px !important;'><img data-title='Enterprise version' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div> <div id='".$message."' class='publienterprise' title='Community version' style='float: right;margin-top: -2px !important; margin-left: 2px !important;'><img data-title='Enterprise version' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>