mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-18 03:01:35 +01:00
Version 0.9.2
This commit is contained in:
@@ -32,21 +32,7 @@
|
||||
{# "Switch" type #}
|
||||
{% if check.ID_TC == 1 or check.ID_TC == 2 or check.ID_TC == 4 %} {# Ping, HttpCode, SQL DB #}
|
||||
<td>
|
||||
{#IF/SWITCH uptime to text#}
|
||||
{%if check.uptime <= 100 and check.uptime > 90 %}
|
||||
<span class='green' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_right}}</span>
|
||||
{%elseif check.uptime <= 95 and check.uptime > 60 %}
|
||||
<span class='blue' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_lproblems}}</span>
|
||||
{%elseif check.uptime <= 60 and check.uptime > 15 %}
|
||||
<span class='orange' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_problems}}</span>
|
||||
{%elseif check.uptime <= 15 and check.uptime >= 0 %}
|
||||
<span class='red' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_outofserv}}</span>
|
||||
{%elseif check.uptime == 255 %}
|
||||
<span class='blue' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_maintenance}}</span>
|
||||
{%else%}
|
||||
<span class='grey' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{T_.status_empty}}</span>
|
||||
{%endif%}
|
||||
{#END IF/SWITCH#}
|
||||
<span class='{{check.statusColor}}' data-tooltip='Type of check: {{check.nameCheck}}' data-tooltip-position='top'>{{check.statusText}}</span>
|
||||
({{ check.uptime}}%)
|
||||
</td>
|
||||
{% if check.uptime != -1 %}{#Only if records exists#}
|
||||
|
||||
Reference in New Issue
Block a user