Add name to bulletin emails

This commit is contained in:
Yingtong Li 2019-02-10 13:18:32 +11:00
parent 9181788bb6
commit 9289256b5c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,11 @@
#} #}
{% block content %} {% block content %}
<tr>
<th class="small-12 large-12 columns first last">
Hi {{ member.first_name if member else '[Name]' }}! Here's your latest news from MUMUS:
</th>
</tr>
<tr><!-- Masthead --> <tr><!-- Masthead -->
<th class="small-12 large-12 columns first last"> <th class="small-12 large-12 columns first last">
<table> <table>

View File

@ -1,3 +1,5 @@
Hi {{ member.first_name if member else '[Name]' }}! Here's your latest news from MUMUS:
{% for event in events %}{{ event.date.strftime('%a %d %b') }}: {{ event.title }}{% if event.link %} <{{ event.link }}>{% endif %} {% for event in events %}{{ event.date.strftime('%a %d %b') }}: {{ event.title }}{% if event.link %} <{{ event.link }}>{% endif %}
{% endfor %} {% endfor %}
{% for group in groups %}{{ group.name }} {% for group in groups %}{{ group.name }}

View File

@ -70,6 +70,7 @@ def bulletin_args(member, events, bulbegin, bulend):
}) })
return { return {
'member': member,
'events': events, 'events': events,
'groups': groups_data, 'groups': groups_data,
'more': [], # TODO 'more': [], # TODO