Statically render svg graphs on person view as well

This commit is contained in:
Peter Stockings
2023-12-09 23:30:22 +11:00
parent d0afd92126
commit fe01b2ade3
3 changed files with 6 additions and 10 deletions

View File

@@ -163,13 +163,8 @@
</div>
<div class="mt-4 mb-4 w-full grid grid-cols-1 2xl:grid-cols-2 gap-4">
{% for exercise_id in selected_exercise_ids %}
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 ">
<div class="hidden"
hx-get="{{ url_for('get_exercise_progress_for_user', person_id=person['PersonId'], exercise_id=exercise_id, min_date=min_date, max_date=max_date) }}"
hx-trigger="load" hx-target="this" hx-swap="outerHTML">
</div>
</div>
{% for graph in person['ExerciseProgressGraphs'] %}
{{ render_partial('partials/sparkline.html', **graph['ExerciseProgressGraph']) }}
{% endfor %}
</div>