From 163854d7bd49bd9cee29194c450042ac5c38308a Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sun, 12 Nov 2023 08:38:43 +0100 Subject: [PATCH] fix: improve layout & manual callback --- templates/service_info.html | 74 ++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/templates/service_info.html b/templates/service_info.html index b22f702..a03aac4 100644 --- a/templates/service_info.html +++ b/templates/service_info.html @@ -5,21 +5,29 @@

Service: {{ service.service }}

@@ -38,23 +46,23 @@
{% endif %} - -

Show in Icinga

+
+

Show in Icinga

- -
- {% if status_list | length > 0 %} -

- {{ status_list[0].status }} submitted on {{ status_list[0].human_date() }} -

- {% else %} -

No status for this service submitted

- {% endif %} -
+
+ {% if status_list | length > 0 %} +

+ {{ status_list[0].status }} submitted on {{ status_list[0].human_date() }} +

+ {% else %} +

No status for this service submitted

+ {% endif %} +
- - - - - - +
DateStatusInfo
+ + + + + - - {% for status in status_list %} - + + {% for status in status_list %} + - - - - {% endfor %} - -
DateStatusInfo
{{ status.human_date() }}{{ status.status }}{{ status.info_text }}
+ {{ status.status }} + {{ status.info_text }} + + {% endfor %} + +