mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
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>
|
||||
|
||||
Reference in new issue
Block a user