Show consecutive stall count beside previous performance
This commit is contained in:
@@ -72,7 +72,13 @@
|
||||
|
||||
{% if exercise_id %}
|
||||
<details class="workout-previous-details">
|
||||
<summary>Previous performance{% if repetitions %}<span>{{ repetitions }} × {{ weight }} kg</span>{% endif %}</summary>
|
||||
<summary>
|
||||
<span class="workout-previous-label">Previous performance</span>
|
||||
{% if repetitions %}<span class="workout-previous-value">{{ repetitions }} × {{ 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>
|
||||
|
||||
Reference in New Issue
Block a user