{% extends "base.html" %} {% block title %}{{ t('Dashboard — Meal Tracker') }}{% endblock %} {% block content %}
{{ t('No registered users yet. Ask household members to register!') }}
{% else %}| {{ t('User') }} | {% for period in dashboard.periods %}{{ t(period.meal_type|capitalize) }} | {% endfor %} {% if is_admin %}{% endif %} | |
|---|---|---|---|
| {{ user.username }} {% if user.is_admin %}{{ t('admin') }}{% endif %} {% if is_me %}{{ t('you') }}{% endif %} | {% for period in dashboard.periods %} {% set resp = user.responses[period.meal_type] %}
{% if is_me and viewing_date >= today %}
{% if resp.changed_at %}
↻ {{ resp.changed_at[11:16] }}
{% endif %}
{% else %}
{{ t('Home') if resp.status == 'yes' else (t('Out') if resp.status == 'no' else t('—')) }}
{% endif %}
|
{% endfor %}
{% if is_admin and not is_me and not user.is_admin %}
{% elif is_admin %} | {% endif %} |