]> git.ipfire.org Git - ipfire.org.git/commitdiff
messages: Do not show unsubscribe link in transactional emails
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Nov 2019 11:44:21 +0000 (11:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Nov 2019 11:44:21 +0000 (11:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/auth/messages/donation-reminder.html
src/templates/messages/base-promo.html [new file with mode: 0644]
src/templates/messages/base.html

index 4975c01e392f0eef505dda3083a00eb122c4b858..e8902ba28d00361321c9c0342dcc0355d4e3519f 100644 (file)
@@ -211,6 +211,7 @@ templates_locationdir = $(templatesdir)/location
 
 templates_messages_DATA = \
        src/templates/messages/base.html \
+       src/templates/messages/base-promo.html \
        src/templates/messages/main.css
 
 templates_messagesdir = $(templatesdir)/messages
index cabed143a188549815863419c64a267625645b7f..22be8b0b9e90232c86db6cc22d26138e7288956b 100644 (file)
@@ -1,4 +1,4 @@
-{% extends "../../messages/base.html" %}
+{% extends "../../messages/base-promo.html" %}
 
 {% block content %}
     <p>
diff --git a/src/templates/messages/base-promo.html b/src/templates/messages/base-promo.html
new file mode 100644 (file)
index 0000000..3c0815a
--- /dev/null
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block footer %}
+       {{ _("Don't like these emails?") }}
+       <a href="https://people.ipfire.org/">{{ _("Unsubscribe") }}</a>.
+{% end block %}
index 959a314810e26e9f1f6fbd3e62fbf44d45a01eb3..829e3d2cbd46377c35476f4bfcd3005a734ef2b8 100644 (file)
 
                                                                                <br>
 
-                                                                               {% block footer %}
-                                                                                       {{ _("Don't like these emails?") }}
-                                                                                       <a href="https://people.ipfire.org/">{{ _("Unsubscribe") }}</a>.
-                                                                               {% end block %}
+                                                                               {% block footer %}{% end block %}
                                                                        </td>
                                                                </tr>
                                                        </table>