From 33e4edf1555f72d245ba4df25903b695b0acaa1e Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Tue, 3 May 2022 15:33:30 +0100 Subject: [PATCH] mirrors: show proxy creation date --- app/portal/templates/tables.html.j2 | 78 +++++++++++++++++------------ 1 file changed, 47 insertions(+), 31 deletions(-) diff --git a/app/portal/templates/tables.html.j2 b/app/portal/templates/tables.html.j2 index ef7fddf..70e10c1 100644 --- a/app/portal/templates/tables.html.j2 +++ b/app/portal/templates/tables.html.j2 @@ -1,3 +1,27 @@ +{% macro alarm_ok() %} + + + + +{% endmacro %} + +{% macro alarm_unknown() %} + + + + +{% endmacro %} + +{% macro alarm_critical() %} + + + + +{% endmacro %} + {% macro origins_table(origins) %}
@@ -13,22 +37,22 @@ {% for origin in origins %} {% if not origin.destroyed %} - - - - - - - + + + + + + + {% endif %} {% endfor %} @@ -45,6 +69,7 @@ + @@ -69,27 +94,18 @@ {{ proxy.url }} +
- - {{ origin.domain_name }} - {{ origin.description }}{% if origin.auto_rotation %}✅{% else %}❌{% endif %} - {{ origin.group.group_name }} - - View/Edit -
+ + {{ origin.domain_name }} + {{ origin.description }}{% if origin.auto_rotation %}✅{% else %}❌{% endif %} + {{ origin.group.group_name }} + + View/Edit +
Group Provider URLCreated Alarms Actions
+ {{ proxy.added | format_datetime }} + {% for alarm in proxy.alarms %} {% if alarm.alarm_state.name == "OK" %} - - - - + {{ alarm_ok() }} {% elif alarm.alarm_state.name == "UNKNOWN" %} - - - - + {{ alarm_unknown() }} {% else %} - - - - + {{ alarm_critical() }} {% endif %} {% endfor %}