Merge branch 'release/v12.43'
This commit is contained in:
@@ -16,12 +16,12 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{% for race in races %}
|
{% for race in races %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ race.startdate }}</td>
|
<td>{{ race.startdate|date:"Y-m-d" }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if race.registration_closure %}
|
{% if race.registration_closure %}
|
||||||
{{ race.registration_closure }}
|
{{ race.registration_closure|date:"Y-m-d H:i e" }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ race.startdate }} {{ race.start_time }}
|
{{ race.startdate|date:"Y-m-d" }} {{ race.start_time }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
|
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
{% elif race|can_submit:rower %}
|
{% elif race|can_submit:rower %}
|
||||||
<a class="orange dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
<a class="orange dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
||||||
{% elif race|future_registered:rower %}
|
{% elif race|future_registered:rower %}
|
||||||
<a class="orange dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
<a class="orange dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
||||||
{% elif race|past_not_registered:rower %}
|
{% elif race|past_not_registered:rower %}
|
||||||
<a class="blue dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
<a class="blue dot" href="/rowers/virtualevent/{{ race.id }}"> </a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load rowerfilters %}
|
{% load rowerfilters %}
|
||||||
{% load leaflet_tags %}
|
{% load leaflet_tags %}
|
||||||
|
{% load tz %}
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{% leaflet_js %}
|
{% leaflet_js %}
|
||||||
@@ -83,9 +84,10 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
|
{% localtime off %}
|
||||||
<div id="raceinfo">
|
<div id="raceinfo">
|
||||||
<p>
|
<p>
|
||||||
<h2>Race Information</h2>
|
<h2>Event Information</h2>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<table class="listtable shortpadded" width="100%">
|
<table class="listtable shortpadded" width="100%">
|
||||||
@@ -99,7 +101,7 @@
|
|||||||
<th>Indoor Race</th><td>To be rowed on a Concept2 ergometer</td>
|
<th>Indoor Race</th><td>To be rowed on a Concept2 ergometer</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Time Zone</th><td>{{ race.timezone }}</td>
|
<th>Event Time Zone</th><td>{{ race.timezone }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
@@ -108,18 +110,28 @@
|
|||||||
</th><td>{{ race.sessionvalue }} {{ race.sessionunit }}
|
</th><td>{{ race.sessionvalue }} {{ race.sessionunit }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Date</th><td>{{ race.startdate|date:"Y-m-d" }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Race Window</th><td>{{ race.startdate|date:"Y-m-d" }} {{ race.start_time|time:"H:i e" }} to {{ race.enddate|date:"Y-m-d" }} {{ race.end_time|time:"H:i e" }} ({{ race.timezone }})</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Registration closure</th>
|
<th>Registration closure</th>
|
||||||
<td>{{ race.registration_closure }}</td>
|
<td>
|
||||||
|
{% with tz=race.timezone %}
|
||||||
|
{{ race.registration_closure|timezone:tz |date:"Y-m-d H:i e" }}
|
||||||
|
{% endwith %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th><td>{{ race.startdate }}</td>
|
<th>
|
||||||
</tr>
|
Results Submission Deadline
|
||||||
<tr>
|
</th>
|
||||||
<th>Race Window</th><td>{{ race.startdate }} {{ race.start_time }} to {{ race.enddate }} {{ race.end_time }}</td>
|
<td>
|
||||||
</tr>
|
{% with tz=race.timezone %}
|
||||||
<tr>
|
{{ race.evaluation_closure|timezone:tz |date:"Y-m-d H:i e" }}
|
||||||
<th>Results Submission Deadline</th><td>{{ race.evaluation_closure }}</td>
|
{% endwith %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Organizer</th><td>{{ race.manager.first_name }} {{ race.manager.last_name }}</td>
|
<th>Organizer</th><td>{{ race.manager.first_name }} {{ race.manager.last_name }}</td>
|
||||||
@@ -137,6 +149,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endlocaltime %}
|
||||||
</li>
|
</li>
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<div id="registerbuttons">
|
<div id="registerbuttons">
|
||||||
@@ -154,6 +167,9 @@
|
|||||||
See race rules below. Participation to this race is free,
|
See race rules below. Participation to this race is free,
|
||||||
unless specified differently in the race comment above.
|
unless specified differently in the race comment above.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
Note. On this page, all times are local times in the time zone of the event.
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{% for button in buttons %}
|
{% for button in buttons %}
|
||||||
{% if button == 'registerbutton' %}
|
{% if button == 'registerbutton' %}
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ def course_edit_view(request,id=0):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@login_required()
|
#@login_required()
|
||||||
def course_view(request,id=0):
|
def course_view(request,id=0):
|
||||||
try:
|
try:
|
||||||
course = GeoCourse.objects.get(id=id)
|
course = GeoCourse.objects.get(id=id)
|
||||||
|
|||||||
Reference in New Issue
Block a user