{# Health ▸ report: the food diary's part — the average logged day over the report's range, with reference values. Uses the report's .rp-* styles. #} {% macro dmy(x) %}{{ x.day }} {{ x.strftime("%b %Y") }}{% endmacro %}

Food intake self-logged, {{ dmy(r.since) }} – {{ dmy(r.today) }}

{% if not r.logged %}

Nothing logged in this period.

{% else %}
Days logged{{ r.logged }} of {{ r.days }}averages below are over the logged days
Energy{{ r.kcal }} kcal a day
Protein{{ r.protein }} g{{ r.protein_pct }} % of the energy (typical 10–35 %)
Carbohydrates{{ r.carbs }} g{{ r.carbs_pct }} % of the energy (typical 45–65 %)
Fat{{ r.fat }} g{{ r.fat_pct }} % of the energy (typical 20–35 %){% if r.sat_pct is not none %} · saturated {{ r.sat_pct }} % (under 10 %){% endif %}
Sugar{{ r.sugar }} g(added sugar under 50 g)
Fibre{{ r.fiber }} g(at least 25 g)
Sodium{{ r.sodium }} mg(under 2000 mg)
{% endif %}