diff --git a/rowers/templates/virtualevent.html b/rowers/templates/virtualevent.html index 965d713e..430aa7e7 100644 --- a/rowers/templates/virtualevent.html +++ b/rowers/templates/virtualevent.html @@ -361,6 +361,31 @@ data-text="@rowsandall #rowingdata Participate in Indoor Rowing virtual race '{{ {% endif %} + {% for record in records %} + {% if record.userid == request.user.rower.id %} + {% if race.sessiontype == 'race' %} + {% if record.emailnotifications %} + + Unsubscribe from race notifications by email + + {% else %} + + Subscribe to race notifications by email + + {% endif %} + {% else %} + {% if record.emailnotifications %} + + Unsubscribe from race notifications by email + + {% else %} + + Subscribe to race notifications by email + + {% endif %} + {% endif %} + {% endif %} + {% endfor %}