From cff0d733e3354f9aef30049587a007951bc0bf23 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 26 Nov 2019 19:01:38 +0000 Subject: [PATCH] Improve WDQS report. --- templates/query_list.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/query_list.html b/templates/query_list.html index 3049df1..7d7918e 100644 --- a/templates/query_list.html +++ b/templates/query_list.html @@ -22,19 +22,19 @@
options
{% for obj in q %} - {% if obj.status_code != 200 %}{% set class=" text-light bg-danger"%}{% endif %} + {% if obj.status_code and obj.status_code != 200 %}{% set class=" text-light bg-danger"%}{% endif %}
- {% if obj.end_time %} - {{ obj.start_time.strftime('%Y %b %d %H:%M') }} - {% else %} - running - {% endif %} + {{ obj.start_time.strftime('%Y %b %d %H:%M') }}
- {{ obj.display_seconds }} secs + {% if obj.end_time %} + {{ obj.display_seconds }} secs + {% else %} + running + {% endif %}