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

@@ -1,7 +1,5 @@
{% for u in users %}
{% with user=u, workouts=u.workouts, bikes=bikes %}
{% include 'workouts_list.html' %}
{% endwith %}
{{ render_partial('workouts_list.html', user=u, workouts=u.workouts, bikes=bikes) }}
{% endfor %}
<script>
@@ -12,6 +10,4 @@
});
</script>
{% with users=users, bikes=bikes %}
{% include 'users.html' %}
{% endwith %}
{{ render_partial('users.html', users=users, bikes=bikes) }}