FreedomBox/plinth/templates/operation-notification.html
Sunil Mohan Adapa e37d26abee
ui: Refactor notification delete buttons to avoid repeating code
Tests:

- Through code changes, ensure that dist upgrade notification, updated to new
release notification, privacy notification, and app installed notification show
up. Ensure that they have correct hx- attributes and URL property for dismiss
button. Clicking dismiss button works as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2026-02-04 08:40:43 +05:30

24 lines
512 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">
{% include 'notifications-dismiss-button.html' with id=id %}
</div>
{% endif %}