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>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-08-15 10:36:06 -04:00
1 parent 5f8d3e30d0
commit fee21cba0d
2 files changed
+11 -8

No files matched your search

@@ -10,14 +10,14 @@
</div>
<p>
{% blocktrans trimmed with url="https://discuss.freedombox.org/c/announcements/7" %}
{% 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='upgrades-new-release' %}?next={{ request.path|iriencode }}"
<a href="{% url 'notification_dismiss' id=id %}?next={{ request.path|iriencode }}"
role="button" class="btn btn-default">
{% trans "Dismiss" %}
</a>