If a workout was tracked with a hear rate monitor heart rate graph will be selected by default, and average bpm will be rendered as well

This commit is contained in:
Peter Stockings
2023-05-08 20:15:40 +10:00
parent 786b068874
commit 70cbb9af2b
2 changed files with 20 additions and 3 deletions

View File

@@ -80,7 +80,8 @@
<p class="text-sm text-gray-500">Duration: {{ w.duration }} | Average RPM: {{ w.average_rpm
}} |
Calories: {{ w.calories }} | Distance: {{ w.distance }}</p>
Calories: {{ w.calories }} | Distance: {{ w.distance }} {% if w.is_heart_rate_available
%} | Average: BPM: {{w.average_bpm }} {% endif %}</p>
</div>
<span
class="ml-auto h-5 w-5 shrink-0 rotate-[-180deg] fill-[#336dec] transition-transform duration-200 ease-in-out group-[[data-te-collapse-collapsed]]:rotate-0 group-[[data-te-collapse-collapsed]]:fill-[#212529] motion-reduce:transition-none dark:fill-blue-300 dark:group-[[data-te-collapse-collapsed]]:fill-white">
@@ -93,7 +94,7 @@
</h2>
<div class="!visible collapse {% if loop.index != 1 %}hidden{% endif %}">
<div id="workout_view-{{ w.id }}">
{% with workout=w, graph_types=['speed'] %}
{% with workout=w, graph_types=w['selected_graph_types'] %}
{% include 'workout_view.html' %}
{% endwith %}
</div>