Add person graphs endpoint for workouts per week & PRs per week, consumed via dashboard, person overview and notes
This commit is contained in:
8
templates/partials/people_graphs.html
Normal file
8
templates/partials/people_graphs.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="w-full mb-4 grid grid-cols-1 xl:grid-cols-2 gap-4" hx-get="{{ refresh_url }}" hx-target="this"
|
||||
hx-swap="outerHTML" hx-trigger="refreshStats from:body">
|
||||
{% for graph in graphs %}
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8">
|
||||
{{ render_partial('partials/svg_line_graph.html', **graph) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@
|
||||
{% endfor %}
|
||||
|
||||
</svg>
|
||||
{% if plots|length > 1 %}
|
||||
|
||||
<div class="flex justify-center pt-2">
|
||||
{% for plot in plots %}
|
||||
<div class="flex items-center px-2 select-none cursor-pointer"
|
||||
@@ -76,6 +76,5 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user