#11140 fix style message warning

This commit is contained in:
Jonathan 2023-05-22 11:39:59 +02:00
parent b76635a54a
commit 5fe0f7fb08
3 changed files with 14 additions and 6 deletions

View File

@ -167,19 +167,22 @@ foreach ($servers as $server) {
break;
}
$data[6] = $server['threads'].' : '.$server['queued_modules'];
$data[6] = '';
if ($server['queued_modules'] > 500) {
$data[6] .= '&nbsp;&nbsp;<div class="inline"><a onclick="show_dialog();" >'.html_print_image(
$data[6] .= '<div class="inline"><a onclick="show_dialog();" >'.html_print_image(
'images/info-warning.svg',
true,
[
'width' => 16,
'heght' => 16,
'class' => 'pulsate clickable',
'style' => 'margin-left: -25px;',
]
).'</a></div>';
).'</a></div>&nbsp;&nbsp;';
}
$data[6] .= $server['threads'].' : '.$server['queued_modules'];
$data[7] = ui_print_timestamp($server['keepalive'], true);

View File

@ -1155,7 +1155,6 @@ if (check_login()) {
$last_status_change_text = __('Time elapsed since last status change: ');
$last_status_change_text .= (empty($module['last_status_change']) === false) ? human_time_comparation($module['last_status_change']) : __('N/A');
$data[4] .= ui_print_status_image($status, htmlspecialchars($title), true, false, false, true, $last_status_change_text);
if ($show_context_help_first_time === false) {
$show_context_help_first_time = true;
@ -1164,6 +1163,8 @@ if (check_login()) {
}
}
$data[4] .= ui_print_status_image($status, htmlspecialchars($title), true, false, false, true, $last_status_change_text);
// Module thresholds.
$data[5] = '';
if ((int) $module['id_tipo_modulo'] !== 25) {

View File

@ -297,8 +297,12 @@ function clippy_context_help($help=null)
$code = str_replace('{clippy_obj}', 'intro_'.$id, $code);
$return = $code.'<div id="'.$id.'" class="inline"><a onclick="show_'.$id.'();" href="javascript: void(0);" >'.html_print_image(
'images/clippy_icon.png',
true
'images/info-warning.svg',
true,
[
'class' => 'main_menu_icon invert_filter',
'style' => 'margin-left: -25px;',
]
).'</a></div>
<script type="text/javascript">