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 %}