Private
Public Access
1
0

adding course result to plannedsessionview

This commit is contained in:
2024-04-05 08:55:02 +02:00
parent 47169af69c
commit 74dac7c789
7 changed files with 58 additions and 10 deletions

View File

@@ -137,7 +137,36 @@
</p>
</li>
{% endif %}
{% endif %}
{% endif %}
{% if ownrecords %}
<li class="grid_4">
<h2>Own (Private) Results</h2>
<p>
<table class="listtable shortpadded">
<thead>
<tr>
<th>Time</th>
<th>Distance</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{% for record in ownrecords %}
<tr>
<td>{{ record.duration |durationprint:"%H:%M:%S.%f" }}</td>
<td>{{ record.distance }} m</td>
<td>{{ record.workoutid|workoutdate }}</td>
<td>
<a title="Details" href="/rowers/workout/{{ record.workoutid|encode }}/view/">
<i class="fas fa-search-plus fa-fw"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
</li>
{% endif %}
</ul>
{% endblock %}

View File

@@ -172,7 +172,7 @@
</li>
{% if coursescript %}
<li class="grid_2">
<h2>Course</h2>
<h2><a href="/rowers/courses/{{ plannedsession.course.id }}">{{ plannedsession.course.name }}</h2>
{{ coursediv|safe }}
{{ coursescript|safe }}