added comments, also remove url_for on request.endpoint, was breaking when needing a param to be passed
This commit is contained in:
@@ -109,13 +109,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if GetJM_Message() != None %}
|
{% if GetJM_Message() != None %}
|
||||||
{% set msg=GetJM_Message() %}
|
{% 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}}">
|
<div class="row alert alert-{{msg.alert}}">
|
||||||
{% if msg.job_id %}
|
{% if msg.job_id %}
|
||||||
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{msg.message|safe}}
|
{{msg.message|safe}}
|
||||||
</div>
|
</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" %}
|
{% if msg.alert != "danger" %}
|
||||||
{% set dont_print=ClearJM_Message(msg.id) %}
|
{% set dont_print=ClearJM_Message(msg.id) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user