Private
Public Access
1
0

adding privacy default on import or upload

This commit is contained in:
2024-12-19 15:51:17 +01:00
parent 9d500265e1
commit 009cdd289b
9 changed files with 72 additions and 24 deletions

View File

@@ -150,25 +150,28 @@
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</td>
</tr><tr>
<th>Source:</th><td>{{ workout.workoutsource }}</td>
</tr><tr>
</tr>
{% if workout.privacy != 'hidden' %}
<tr>
<th>Public link to this workout:</th>
<td>
<a href="/rowers/workout/{{ workout.id|encode }}/">https://rowsandall.com/rowers/workout/{{ workout.id|encode }}/</a>
</td>
</tr>
{% for course in courses %}
<tr>
<th>
Timed Course:
</th>
<td>
<a href="/rowers/courses/{{ course.id }}"/>{{ course }}</a>
</td>
</tr>
{% endfor %}
</table>
</li>
<li class="grid_2">
{% endif %}
{% for course in courses %}
<tr>
<th>
Timed Course:
</th>
<td>
<a href="/rowers/courses/{{ course.id }}"/>{{ course }}</a>
</td>
</tr>
{% endfor %}
</table>
</li>
<li class="grid_2">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.