toggle notifications
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user