Only show estimated one rep max graph if multiple workouts with exercise have been completed

This commit is contained in:
Peter Stockings
2022-11-19 21:42:37 +11:00
parent 39b5cab453
commit 44cf4b2c6b

View File

@@ -40,6 +40,7 @@
<div class="align-middle inline-block min-w-full">
<div class="shadow overflow-hidden sm:rounded-lg">
<h4 class="text-l font-semibold text-blue-400 mb-2 text-center">{{ e['ExerciseName'] }}</h4>
{% if e['RepMaxes']|length > 1 %}
<div id="person-{{ p['PersonId'] }}-exercise-{{ e['ExerciseId'] }}"
class="w-full mt-2 aspect-video"></div>
<script>
@@ -51,6 +52,7 @@
hovertemplate
}], layout, config);
</script>
{% endif %}
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>