Add badges to sets showing stats ie weight/rep increase or how many weeks stalled

This commit is contained in:
Peter Stockings
2026-01-30 22:42:06 +11:00
parent eada1a829b
commit e156dd30cc
5 changed files with 138 additions and 3 deletions

View File

@@ -31,9 +31,14 @@
</div>
{% endif %}
</td>
<td class="p-4 whitespace-nowrap text-sm font-semibold text-gray-900">
<td class="p-4 text-sm font-semibold text-gray-900">
{% if is_edit|default(false, true) == false %}
{{ repetitions }} x {{ weight }}kg
<div class="flex flex-wrap items-center gap-x-2 gap-y-1">
<span class="whitespace-nowrap">{{ repetitions }} x {{ weight }}kg</span>
<div hx-get="{{ url_for('workout.get_topset_achievements', person_id=person_id, workout_id=workout_id, topset_id=topset_id) }}"
hx-trigger="load" hx-target="this" hx-swap="innerHTML" class="flex flex-wrap items-center gap-1">
</div>
</div>
{% else %}
<div class="flex items-center flex-col sm:flex-row">
<input type="number"