diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-04-19 00:45:15 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-04-19 00:45:15 +0200 |
commit | 94c598f00b1c2747419d87d3fa3cf7d6dbb0bf49 (patch) | |
tree | 0519e3d1fdb1ad86afb4676fce46fb68d87fc66b /fietsboek/templates/profile_graphs.jinja2 | |
parent | f715a0543460fb5c1cbd40b54c60db3857887220 (diff) | |
download | fietsboek-94c598f00b1c2747419d87d3fa3cf7d6dbb0bf49.tar.gz fietsboek-94c598f00b1c2747419d87d3fa3cf7d6dbb0bf49.tar.bz2 fietsboek-94c598f00b1c2747419d87d3fa3cf7d6dbb0bf49.zip |
I wasn't very happy with the wonkiness that the previous tabs were,
especially with the calendar having different URLs *sometimes*.
I'm planning to use the same strategy for the admin site soon, so it
makes sense to implement it here.
Diffstat (limited to 'fietsboek/templates/profile_graphs.jinja2')
-rw-r--r-- | fietsboek/templates/profile_graphs.jinja2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fietsboek/templates/profile_graphs.jinja2 b/fietsboek/templates/profile_graphs.jinja2 new file mode 100644 index 0000000..4a9e474 --- /dev/null +++ b/fietsboek/templates/profile_graphs.jinja2 @@ -0,0 +1,16 @@ +{% set profile_index = 1 %} +{% extends "profile.jinja2" %} + +{% block profile_content %} +<!-- Second tab --> +<h2 class="chart-title">{{ _("page.profile.graph.km_per_month") }}</h2> +<div style="position: relative; height: 500px; width: 75%; margin: auto;"><canvas id="graph-month-summary"></canvas></div> +{% endblock %} + +{% block latescripts %} +<script> + (function() { + loadProfileStats(); + })(); +</script> +{% endblock %} |