From 09d56c5cc517cda5d3961226b76460c03038c314 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 14 Feb 2021 16:02:20 +1100 Subject: [PATCH] added comments, also remove url_for on request.endpoint, was breaking when needing a param to be passed --- templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 82d1553..14f3435 100644 --- a/templates/base.html +++ b/templates/base.html @@ -109,13 +109,14 @@ {% endif %} {% if GetJM_Message() != None %} {% set msg=GetJM_Message() %} - {% if url_for(request.endpoint) != "/fix_dups" %} + {% if request.endpoint != "fix_dups" and request.endpoint != "rm_dups" %}
{% if msg.job_id %} Job #{{msg.job_id}}: {% endif %} {{msg.message|safe}}
+ {# if a JM is a danger message, allow code to remove the status, it should be 'permanent' until addressed -- e.g. you have duplicates, fix them #} {% if msg.alert != "danger" %} {% set dont_print=ClearJM_Message(msg.id) %} {% endif %}