FreedomBox/plinth/modules/upgrades/templates/upgrades-new-release.html
Sunil Mohan Adapa fee21cba0d
notification: Pass full context when rendering body template
- Important information such as id of the notification should be available when
rendering the body template.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-15 10:36:06 -04:00

25 lines
642 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% load static %}
<div class="notification-title">
{% blocktrans %}{{box_name}} updated{% endblocktrans %}
</div>
<p>
{% blocktrans trimmed with url="https://discuss.freedombox.org/c/announcements/7" version=data.version %}
{{ box_name }} has been updated to version {{ version }}. See the
<a href="{{ url }}">release announcement</a>.
{% endblocktrans %}
</p>
<p>
<a href="{% url 'notification_dismiss' id=id %}?next={{ request.path|iriencode }}"
role="button" class="btn btn-default">
{% trans "Dismiss" %}
</a>
</p>