2023-01-13 14:54:21 -08:00
|
|
|
{% for announcement in announcements %}
|
|
|
|
<div class="announcement">
|
|
|
|
<a hx-post="{{ announcement.urls.dismiss }}" hx-target="closest .announcement" hx-swap="delete" class="dismiss" title="Dismiss announcement"><i class="fa-solid fa-xmark"></i></a>
|
|
|
|
{{ announcement.html }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2023-05-03 21:42:37 -07:00
|
|
|
{% if messages %}
|
|
|
|
<ul class="messages">
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="message {{ message.tags }}">
|
|
|
|
<a class="dismiss" title="Dismiss" _="on click remove closest <div/>"><i class="fa-solid fa-xmark"></i></a>
|
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|