{% extends "base.html" %} {% from "macros.html" import diagram with context %} {% block title %}Bodyweight{% endblock %} {% block content_title %}Bodyweight{% endblock %} {% block content %} {{ diagram("bodyweight", intervals, current) }}
{% for name, description in [ ("Weight", "Weight in kg"), ("Avg. Weight", "Central moving average of 9 values"), ("Avg. Change", "Interpolated average weight change within the last 7 days in percent"), ] %} {% endfor %} {% for datetime, weight, avg_weight, avg_weight_change in bodyweight %} {% endfor %}
Date
{{ datetime.date() }} {{ weight }} {{ avg_weight }} {{ avg_weight_change }}
{% endblock %} {% set parent_page = 'index_view' %}