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]}} +