Private
Public Access
1
0

Merge branch 'develop' into feature/icu_sessions

This commit is contained in:
2024-12-19 18:53:17 +01:00
8 changed files with 72 additions and 24 deletions

View File

@@ -11,12 +11,16 @@
<th>Distance:</th><td>{{ workout.distance }}m</td>
</tr><tr>
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</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><tr>
</tr>
{% endif %}
<tr>
<th>Comments</th>
<td>
<a href="/rowers/workout/{{ workout.id|encode }}/comment">Comment ({{ aantalcomments }})</a>

View File

@@ -46,6 +46,14 @@
<p>
Click on the icons to establish the connection or to renew the authorization.
</p>
<p>
By default, imported workouts are set to have a public URL. However, new workouts can be set to
private by default with the following setting:
<table>
{{ forms.imports_are_private.as_table }}
<input type="submit" value="Save">
</table>
</p>
</li>
<li class="grid_4">
<h2>API Key</h2>

View File

@@ -35,6 +35,7 @@
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ userform.as_table }}
{{ privateform.as_table }}
{{ accountform.as_table }}
<tr>
<th>&nbsp;</th><td></td>

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.