Add acheivement badges to monthly calendar view

This commit is contained in:
Peter Stockings
2026-02-02 20:54:28 +11:00
parent bc2a350e90
commit 2b330e4743
3 changed files with 62 additions and 26 deletions

View File

@@ -133,8 +133,15 @@
{% for set in workout.sets %}
<button
class="flex flex-col xl:flex-row items-start lg:items-center flex-shrink-0 px-0 sm:px-0.5 md:px-0.5 lg:px-0.5 text-xs">
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-medium leading-none truncate">{{
set.exercise_name }}</span>
<span
class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-medium leading-none truncate flex items-center">
{{ set.exercise_name }}
{% if set.is_pr %}
<span class="ml-1 text-yellow-500" title="All-Time PR!">🏆</span>
{% elif set.is_improvement %}
<span class="ml-1 text-green-500 font-bold" title="Improved from last time"></span>
{% endif %}
</span>
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-light leading-none">{{ set.repetitions }} x {{
set.weight }}kg</span>
</button>