Replace parenthesis is template

This commit is contained in:
PCoder 2019-12-26 14:05:56 +05:30
parent c3b22992ea
commit ec5bfb18b3

View file

@ -1,7 +1,7 @@
{% if messages %}
<ul class="list-unstyled msg-list">
{% for message in messages %}
<div class="alert {% if message.tags and (message.tags == 'error' or message.tags == 'vat_error') %} alert-danger {% else %} alert-{{message.tags}} {% endif %}">{{ message|safe }}</div>
<div class="alert {% if message.tags and message.tags == 'error' or message.tags and message.tags == 'vat_error' %} alert-danger {% else %} alert-{{message.tags}} {% endif %}">{{ message|safe }}</div>
{% endfor %}
</ul>
{% endif %}