Private
Public Access
1
0

switcher speed improvement virtualevents

This commit is contained in:
Sander Roosendaal
2018-04-24 17:29:21 +02:00
parent 2fdffef56b
commit 56e8e5935c
4 changed files with 26 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
<thead>
<tr>
<th>Date</th>
<th>Registration Deadline</th>
<th>Event</th>
<th>Country</th>
<th>Course</th>
@@ -14,9 +15,16 @@
{% for race in races %}
<tr>
<td>{{ race.startdate }}</td>
<td>
{% if race.registration_closure %}
{{ race.registration_closure }}
{% else %}
{{ race.startdate }} {{ race.start_time }}
{% endif %}
</td>
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
<td>{{ race.course.country }}</td>
<td>{{ race.course.name }}</td>
<td><a href="/rowers/courses/{{ race.course.id }}">{{ race.course.name }}</a></td>
<td>
{% if rower %}
{% if race|can_register:rower %}
@@ -25,6 +33,8 @@
<a class="orange dot" href="/rowers/virtualevent/{{ race.id }}">&nbsp;</a>
{% elif race|race_complete:rower %}
<a class="green dot" href="/rowers/virtualevent/{{ race.id }}">&nbsp;</a>
{% elif race|past_not_registered:rower %}
<a class="white dot" href="/rowers/virtualevent/{{ race.id }}">&nbsp;</a>
{% else %}
<a class="red dot" href="/rowers/virtualevent/{{ race.id }}">&nbsp;</a>
{% endif %}