Add unsubscribe, etc. links to bulletin email

This commit is contained in:
Yingtong Li 2019-02-10 13:19:10 +11:00
parent 9289256b5c
commit 3623a5ad58
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 34 additions and 2 deletions

View File

@ -1077,6 +1077,7 @@
<style type="text/css">
.heading {
background: rgb(1, 46, 111);
position: relative;
}
.heading h2 {
@ -1089,6 +1090,8 @@
margin: 16px 0 0 0;
text-align: center;
}
{% block css %}{% endblock %}
</style>
<style type="text/css" media="only screen and (max-width: 596px)">
@ -1419,7 +1422,11 @@
<table>
<tr>
<th>
<p class="text-center footercopy">&#xA9; Copyright {{ import('datetime').datetime.now().strftime('%Y') }} MUMUS Inc. All Rights Reserved.<br>Design by <a href="https://www.sendwithus.com/resources/templates/meow">SendWithUs</a>.</p>
<p class="text-center footercopy">
{% block footer %}{% endblock %}
&#xA9; Copyright {{ import('datetime').datetime.now().strftime('%Y') }} MUMUS Inc. All Rights Reserved.<br>
Design by <a href="https://www.sendwithus.com/resources/templates/meow">SendWithUs</a>.
</p>
</th>
<th class="expander"></th>
</tr>

View File

@ -20,6 +20,21 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block css %}
.group-options {
width: 100px;
position: absolute;
right: 8px;
top: 8px;
color: #ccc;
text-align: right;
font-size: 8pt;
}
.group-options a {
color: inherit !important;
}
{% endblock %}
{% block content %}
<tr>
<th class="small-12 large-12 columns first last">
@ -45,6 +60,11 @@
<tr class="heading"> <!-- Section heading -->
<th class="small-12 large-12 columns first last">
<h2 class="text-center">{{ group.name }}</h2>
{% if group.group.subscribable %}
<div class="group-options"><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('membership') }}">Unsubscribe</a></div>
{% elif group.name != 'All Years' %}
<div class="group-options"><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('membership') }}">Change year level</a></div>
{% endif %}
</th>
<th class="expander"></th>
</tr>
@ -82,3 +102,7 @@
</tr>
{% endif %}
{% endblock content %}
{% block footer %}
MUMUS Mail is personalised for you. <a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('membership') }}">Unsubscribe or manage your email subscription.</a><br>
{% endblock %}

View File

@ -22,4 +22,5 @@ Hi {{ member.first_name if member else '[Name]' }}! Here's your latest news from
{% if item.link %}Read more <{{ item.link }}>
{% endif %}{% endfor %}{% endif %}© Copyright {{ import('datetime').datetime.now().strftime('%Y') }} MUMUS Inc. All Rights Reserved.
{% endif %}{% endfor %}{% endif %}MUMUS Mail is personalised for you. Unsubscribe or manage your email subscription at https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('membership') }}
© Copyright {{ import('datetime').datetime.now().strftime('%Y') }} MUMUS Inc. All Rights Reserved.