mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-01 19:51:00 +00:00
16 lines
665 B
HTML
16 lines
665 B
HTML
{% 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 %}
|
|
{% 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 %}
|