diff --git a/public/index.php b/public/index.php index 507980c..42fc4e6 100755 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,6 @@ + + +
+ {% for metricName, metricData in metrics %} + {% if metricName starts with 'disk_used_' and metricName != 'disk_used' %} +
+
+
+
+ {% if metricName == 'disk_used_root' %}/ (корень) + {% elseif metricName == 'disk_used_home' %}/home + {% elseif metricName == 'disk_used_boot' %}/boot + {% elseif metricName == 'disk_used_mnt_data' %}/mnt/data + {% else %}{{ metricName|replace({'disk_used_': '', '_': ' '})|title }} + {% endif %} +
+

{{ metricData[0].value }}{{ metricData[0].unit|default('%') }}

+

{{ metricData[0].created_at|date('d.m.Y H:i') }}

+
+
+
+
+ {% endif %} + {% endfor %} +
+
{% for metricName, metricData in metrics %} - {% if metricName!="top_cpu_proc" and metricName!="top_ram_proc" %} + {% if metricName!="top_cpu_proc" and metricName!="top_ram_proc" and not (metricName starts with "disk_used_") and metricName != "disk_used" %}
@@ -398,7 +424,6 @@ -