Private
Public Access
1
0

first version wup cd

This commit is contained in:
2025-02-18 15:41:01 +01:00
parent 7902f2d4dd
commit d37ea749ba
5 changed files with 100 additions and 6 deletions

View File

@@ -34,12 +34,18 @@
</h1>
{% endif %}
{% if nr_commutes %}
{% if nr_commutes or nr_wups_cds %}
<p>
<a href="?show_commutes=true">Show {{ nr_commutes }} commutes</a>
{% if nr_commutes %}
<a href="?show_commutes=true">Show {{ nr_commutes }} commutes</a>&nbsp;
{% endif %}
{% if nr_wups_cds %}
<a href="?show_wups_cds=true">Show {{ nr_wups_cds }} warmups and cooldowns</a>
{% endif %}
</p>
{% endif %}
<ul class="main-content">
<li class="grid_4">
<span>
@@ -109,7 +115,7 @@
{% endif %}
{% for workout in workouts %}
{% if not workout.is_commute or not user.rower.small_commutes %}
{% if workout|show_normal %}
<li class="grid_4 divlines">
{% if request.GET.selectworkouts %}
<input type="checkbox" id="workoutid" value={{ workout.id|encode }} name="workoutid" />
@@ -124,6 +130,14 @@
{% if workout.rankingpiece %}
<span style="font-size: smaller"><i class="fal fa-asterisk"></i></span>
{% endif %}
{% if workout.is_commute %}
Commute
{% endif %}
{% if workout.sub_type == "Warming Up" %}
Warming Up
{% elif workout.sub_type == "Cooling Down" %}
Cooling Down
{% endif %}
{% if workout.rpe == 0 and not workout.duplicate %}
<span style="font-size: smaller">
<a href="/rowers/workout/{{ workout.id|encode }}/edit/">No RPE</a>
@@ -207,7 +221,7 @@
</div>
</div>
</li>
{% elif show_commutes and user.rower.small_commutes %}
{% elif workout|show_commute %}
<li class="grid_4 divlines">
<div class="workoutcontainer">
<div class="workoutelement">
@@ -251,6 +265,54 @@
</div>
</div>
</li>
{% elif workout|show_wup_cd %}
<li class="grid_4 divlines">
<div class="workoutcontainer">
<div class="workoutelement">
{% if workout.sub_type == "Warming Up" %}
<span style="font-size: smaller"><i class="fa-solid fa-temperature-arrow-up"></i></span>
{% else %}
<span style="font-size: smaller"><i class="fa-solid fa-temperature-arrow-down"></i></span>
{% endif %}
</div>
<div class="workoutelement">
<span style="color:#555">Distance</span>
{{ workout.distance|distanceprint }}
</div>
<div class="workoutelement">
<span style="color:#555">Time</span>
{{ workout.duration |durationprint:"%H:%M:%S.%f" }}
</div>
<div class="workoutelement">
{% if workout|may_edit:request %}
<a class="small"
href={% url rower.defaultlandingpage id=workout.id|encode %}
title="{{ rower.defaultlandingpage|verbose }}">
<i class="{{ rower.defaultlandingpage|landingicon }}"></i></a>
{% else %}
&nbsp;
{% endif %}
</div>
<div class="workoutelement">
{% if workout|may_edit:request %}
{% if rower.defaultlandingpage2 != 'workout_delete' %}
<a class="small"
href={% url rower.defaultlandingpage2 id=workout.id|encode %}
title="{{ rower.defaultlandingpage2|verbose }}">
<i class="{{ rower.defaultlandingpage2|landingicon }}"></i></a>
{% else %}
<a class="small"
href={% url rower.defaultlandingpage2 id=workout.id|encode %}
title="{{ rower.defaultlandingpage2|verbose }}">
<i class="{{ rower.defaultlandingpage2|landingicon }}"></i></a>
{% endif %}
{% else %}
&nbsp;
{% endif %}
</div>
</div>
</li>
{% endif %}
{% endfor %}