Files
website-v2/templates/partials/messages.html
Greg Newman 9cf9a08491 🎨 style messages
Styles messages and removes them from forum base template so they are global.

Issue: #83
2023-03-01 10:15:55 -05:00

11 lines
462 B
HTML

<div id="messages" class="w-full text-center">
{% if messages %}
{% for message in messages %}
<div class="w-2/3 mx-auto text-left items-center text-white rounded text-base px-3 py-2 {% if 'error' in message.tags %}bg-red-500{% else %}bg-green/50{% endif %} fade show">
<button type="button" class="float-right" data-dismiss="alert" aria-hidden="true">&times;</button>
{{ message }}
</div>
{% endfor %}
{% endif %}
</div>