{# Health ▸ Overview: today's food card (views.summary as s). Health's card look; its own small ring styles inline here (food.css isn't on Health's pages). #} {% import "food/_head.html" as fd %}

Food today

Diary ›
{% if not s.n %}

Nothing logged today — add food.

{% else %}
{{ fd.n(s.ring.kcal) }}of {{ fd.n(s.target) }} kcal
{% for b in s.bars[:3] %}
{{ b.label }}
{{ fd.g(b.v) }} / {{ b.target }} g
{% endfor %}
Left
{% if s.ring.left >= 0 %}{{ fd.n(s.ring.left) }} kcal{% else %}{{ fd.n(-s.ring.left) }} kcal over{% endif %}
{% endif %}