Make disable_url optional for notifications

This commit is contained in:
Richard Schreiber
2026-05-21 08:35:29 +02:00
parent f740d46d47
commit 5fdc7b784c
2 changed files with 7 additions and 4 deletions

View File

@@ -55,10 +55,12 @@
{% trans "You receive these emails based on your notification settings." %}<br> {% trans "You receive these emails based on your notification settings." %}<br>
<a href="{{ settings_url }}"> <a href="{{ settings_url }}">
{% trans "Click here to view and change your notification settings" %} {% trans "Click here to view and change your notification settings" %}
</a><br>
<a href="{{ disable_url }}">
{% trans "Click here disable all notifications immediately." %}
</a> </a>
{% if disable_url %}<br>
<a href="{{ disable_url }}">
{% trans "Click here disable all notifications immediately." %}
</a>
{% endif %}
</div> </div>
<!--[if gte mso 9]> <!--[if gte mso 9]>
</td></tr></table> </td></tr></table>

View File

@@ -14,5 +14,6 @@
{% trans "You receive these emails based on your notification settings." %} {% trans "You receive these emails based on your notification settings." %}
{% trans "Click here to view and change your notification settings:" %} {% trans "Click here to view and change your notification settings:" %}
{{ settings_url }} {{ settings_url }}
{% trans "Click here disable all notifications immediately:" %} {% if disable_url %}{% trans "Click here disable all notifications immediately:" %}
{{ disable_url }} {{ disable_url }}
{% endif %}