Switch to using render_partial instead of include

This commit is contained in:
Peter Stockings
2023-10-20 19:40:43 +11:00
parent ec9ec443e4
commit f340d1d3a9
4 changed files with 12 additions and 18 deletions

View File

@@ -93,9 +93,7 @@
</div>
<div class="p-3 text-xs italic font-normal text-gray-500" id="workout_view_wrapper-156">
<div id="workout_view-{{ workout.id }}">
{% with workout=workout, graph_types=workout['selected_graph_types'] %}
{% include 'workout_view.html' %}
{% endwith %}
{{ render_partial('workout_view.html', workout=workout, graph_types=workout['selected_graph_types']) }}
</div>
<div class="flex justify-end">
<button