Fixed Agent and module text size

This commit is contained in:
Daniel Maya 2020-12-10 12:06:56 +01:00
parent 463013b06a
commit fcf4b6c239
4 changed files with 5 additions and 5 deletions

View File

@ -567,12 +567,12 @@ if ($agents !== false) {
$url = ui_get_full_url( $url = ui_get_full_url(
$url.'&op=update&id='.$cluster->id() $url.'&op=update&id='.$cluster->id()
); );
echo '<a href="'.$url.'">'.$agent['alias'].'</a>'; echo '<a href="'.$url.'">'.ui_print_truncate_text($agent['alias'], 'agent_medium').'</a>';
} }
} else { } else {
echo '<a alt ='.$agent['nombre']." href='index.php?sec=gagente& echo '<a alt ='.$agent['nombre']." href='index.php?sec=gagente&
sec2=godmode/agentes/configurar_agente&tab=$main_tab& sec2=godmode/agentes/configurar_agente&tab=$main_tab&
id_agente=".$agent['id_agente']."'>".'<span class="'.$custom_font_size.' title ="'.$agent['nombre'].'">'.$agent['alias'].'</span>'.'</a>'; id_agente=".$agent['id_agente']."'>".'<span class="'.$custom_font_size.' title ="'.$agent['nombre'].'">'.ui_print_truncate_text($agent['alias'], 'agent_medium').'</span>'.'</a>';
} }
echo '</strong>'; echo '</strong>';

View File

@ -784,7 +784,7 @@ foreach ($agents as $agent) {
$data[0] = '<div class="left_'.$agent['id_agente'].'">'; $data[0] = '<div class="left_'.$agent['id_agente'].'">';
$data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'].'"><b><span class="'.$custom_font_size.' title ="'.$agent['nombre'].'">'.$agent['alias'].'</span></b></a>'; $data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'].'"><b><span class="'.$custom_font_size.' title ="'.$agent['nombre'].'">'.ui_print_truncate_text($agent['alias'], 'agent_medium', false, true, true).'</span></b></a>';
if ($agent['quiet']) { if ($agent['quiet']) {
$data[0] .= '&nbsp;'; $data[0] .= '&nbsp;';

View File

@ -92,7 +92,7 @@ $alive_animation = agents_get_status_animation(
$agent_name = ui_print_agent_name( $agent_name = ui_print_agent_name(
$agent['id_agente'], $agent['id_agente'],
true, true,
500, 'agent_medium',
'font-size: medium;font-weight:bold', 'font-size: medium;font-weight:bold',
true true
); );

View File

@ -1419,7 +1419,7 @@ if (!empty($result)) {
} }
if (in_array('module_name', $show_fields) || is_metaconsole()) { if (in_array('module_name', $show_fields) || is_metaconsole()) {
$data[3] = ui_print_truncate_text($row['module_name'], 'agent_small', false, true, true); $data[3] = ui_print_truncate_text($row['module_name'], 'module_small', false, true, true);
if ($row['extended_info'] != '') { if ($row['extended_info'] != '') {
$data[3] .= ui_print_help_tip($row['extended_info'], true, '/images/default_list.png'); $data[3] .= ui_print_help_tip($row['extended_info'], true, '/images/default_list.png');
} }