Private
Public Access
1
0

toggle notifications

This commit is contained in:
Sander Roosendaal
2018-12-02 21:09:15 +01:00
parent 6d6d269ce9
commit 8b2ea062de

View File

@@ -361,6 +361,31 @@ data-text="@rowsandall #rowingdata Participate in Indoor Rowing virtual race '{{
</table>
{% endif %}
</div>
{% for record in records %}
{% if record.userid == request.user.rower.id %}
{% if race.sessiontype == 'race' %}
{% if record.emailnotifications %}
<a href="/rowers/raceregistration/togglenotification/{{ race.id }}">
Unsubscribe from race notifications by email
</a>
{% else %}
<a href="/rowers/raceregistration/togglenotification/{{ race.id }}">
Subscribe to race notifications by email
</a>
{% endif %}
{% else %}
{% if record.emailnotifications %}
<a href="/rowers/indoorraceregistration/togglenotification/{{ race.id }}">
Unsubscribe from race notifications by email
</a>
{% else %}
<a href="/rowers/indoorraceregistration/togglenotification/{{ race.id }}">
Subscribe to race notifications by email
</a>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</li>
<li class="grid_4">
<div id="rules">