apply universal styling to flash alerts
All checks were successful
Flask Run Test / Flask-Run-Test (push) Successful in 10s
All checks were successful
Flask Run Test / Flask-Run-Test (push) Successful in 10s
This commit is contained in:
@@ -15,7 +15,19 @@
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% if category == 'message' %}
|
||||
{% set category = 'primary' %}
|
||||
{% endif %}
|
||||
{% if category == 'error' %}
|
||||
{% set category = 'danger' %}
|
||||
{% endif %}
|
||||
{% if category == 'info' %}
|
||||
{% set category = 'info' %}
|
||||
{% endif %}
|
||||
{% if category == 'warning' %}
|
||||
{% set category = 'warning' %}
|
||||
{% endif %}
|
||||
<li class="alert alert-{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
@@ -16,7 +16,19 @@
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% if category == 'message' %}
|
||||
{% set category = 'primary' %}
|
||||
{% endif %}
|
||||
{% if category == 'error' %}
|
||||
{% set category = 'danger' %}
|
||||
{% endif %}
|
||||
{% if category == 'info' %}
|
||||
{% set category = 'info' %}
|
||||
{% endif %}
|
||||
{% if category == 'warning' %}
|
||||
{% set category = 'warning' %}
|
||||
{% endif %}
|
||||
<li class="alert alert-{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
@@ -16,7 +16,19 @@
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% if category == 'message' %}
|
||||
{% set category = 'primary' %}
|
||||
{% endif %}
|
||||
{% if category == 'error' %}
|
||||
{% set category = 'danger' %}
|
||||
{% endif %}
|
||||
{% if category == 'info' %}
|
||||
{% set category = 'info' %}
|
||||
{% endif %}
|
||||
{% if category == 'warning' %}
|
||||
{% set category = 'warning' %}
|
||||
{% endif %}
|
||||
<li class="alert alert-{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user