added comments, also remove url_for on request.endpoint, was breaking when needing a param to be passed

This commit is contained in:
2021-02-14 16:02:20 +11:00
parent 039b6fd805
commit 09d56c5cc5

View File

@@ -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" %}
<div class="row alert alert-{{msg.alert}}">
{% if msg.job_id %}
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
{% endif %}
{{msg.message|safe}}
</div>
{# 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 %}