Show consecutive stall count beside previous performance

This commit is contained in:
Peter Stockings
2026-10-11 11:30:30 +11:00
parent 9612d322eb
commit 0c0bcdc4b6
5 changed files with 46 additions and 7 deletions
+8 -2
View File
@@ -72,7 +72,13 @@
{% if exercise_id %}
<details class="workout-previous-details">
<summary>Previous performance{% if repetitions %}<span>{{ repetitions }} &times; {{ weight }} kg</span>{% endif %}</summary>
<summary>
<span class="workout-previous-label">Previous performance</span>
{% if repetitions %}<span class="workout-previous-value">{{ repetitions }} &times; {{ weight }} kg</span>{% endif %}
{% if stalled_sessions|default(0) > 0 %}
<span class="workout-stall-badge" title="Consecutive repeats of the same weight and reps">Stalled {{ stalled_sessions }} {{ 'time' if stalled_sessions == 1 else 'times' }}</span>
{% endif %}
</summary>
<div class="w-full">
<div class="hidden"
hx-get="{{ url_for('get_exercise_progress_for_user', person_id=person_id, exercise_id=exercise_id) }}"
@@ -81,4 +87,4 @@
</div>
</details>
{% endif %}
</div>
</div>