Food diary

{{ day|date:"l j F Y" }}

{% for meal in meals %}

{{ meal.label }}

{{ meal.calories|floatformat:0 }} kcal

+
{% if meal.entries %}
    {% for entry in meal.entries %}
  • {% with images=entry.attachments.all %} {% if images %}
    {% for attachment in images %}{% endfor %}
    {% elif entry.product and entry.product.image_url %}{% endif %} {% endwith %}
    {{ entry.product_name_snapshot }}{% if entry.brand_snapshot %}{{ entry.brand_snapshot }}{% endif %}{% if entry.calories_kcal is not None %}{{ entry.calories_kcal|floatformat:0 }} kcal{% else %}— kcal{% endif %} · {% if entry.portion_label_snapshot %}{{ entry.portion_label_snapshot }} {% endif %}({{ entry.amount|floatformat:-3 }} {{ entry.unit }}){% if entry.nutrition_incomplete %} · Incomplete nutrition estimate{% endif %}
    Edit{% if entry.product %}Drink settings{% endif %}
  • {% endfor %}
{% else %}

Nothing logged yet.

{% endif %}
{% endfor %} Add food