FreedomBox/plinth/templates/operation-notification.html
Sunil Mohan Adapa 09f1df6bb8
notifications: Minor styling fix for operation notifications
- Use btn-toolbar class instead of <p> tag for more consistent spacing between
buttons and the bottom of the notification.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-07-10 16:10:05 -07:00

27 lines
617 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% load static %}
<p>
{% if data.state == "waiting" %}
<span class="fa fa-clock-o"></span>
{% elif data.state == "running" %}
<span class="fa fa-refresh fa-spin processing"></span>
{% elif data.state == "completed" %}
{% endif %}
{{ message }}
</p>
{% if data.state == "completed" %}
<div class="btn-toolbar">
<a href="{% url 'notification_dismiss' id=id %}?next={{ request.path|iriencode }}"
role="button" class="btn btn-default">
{% trans "Dismiss" %}
</a>
</div>
{% endif %}