From 2aaa1c3169d0fa9244776aef1108416a717f9895 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Fri, 18 Dec 2020 14:25:09 +0600 Subject: [PATCH] v4.5.6.0 --- app/templates/ajax/alerts_history.html | 85 ++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 app/templates/ajax/alerts_history.html diff --git a/app/templates/ajax/alerts_history.html b/app/templates/ajax/alerts_history.html new file mode 100644 index 00000000..94c3abcf --- /dev/null +++ b/app/templates/ajax/alerts_history.html @@ -0,0 +1,85 @@ + + +{% if action == "history" %} + {% set column_for_sort = 4 %} +{% else %} + {% set column_for_sort = 3 %} +{% endif %} + + + + + + + + {% if action != "checker_history" %} + + {% endif %} + + + + + + + {% if smon != '' %} + {% for t in smon %} + + + + {% if action != "checker_history" %} + + {% endif %} + + + + + {% endfor %} + {% else %} + Table is empty + {% endif %} + +
+ Level + + Host + + Port + + Alert + + Date + + Time +
+ {% if t.1 == 'info' %} + {% set color = '#5ad05a' %} + {% else %} + {% set color = '#be2424' %} + {% endif %} + {{t.1 |upper}} + + {{t.2}} + + {{t.3}} + + {{t.0}} + + {{t.4.split(' ')[0]}} + + {{t.4.split(' ')[1]}} +