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:
@@ -12,12 +12,24 @@
|
||||
<div class="app">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
{% 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 %}
|
||||
{% endwith %}
|
||||
<div class="dashboard-container">
|
||||
|
||||
@@ -13,12 +13,24 @@
|
||||
<div class="app">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
{% 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 %}
|
||||
{% endwith %}
|
||||
|
||||
|
||||
@@ -13,12 +13,24 @@
|
||||
<div class="app">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
<li class="{{ category }}"><strong>{{ message }}</strong></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<!-- category: message, error, info, warning -->
|
||||
{% 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 %}
|
||||
{% endwith %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user