{% extends "base.html" %} {% block title %}{{ t('Dashboard — Meal Tracker') }}{% endblock %} {% block content %}

{% if history_mode %}{{ t('History — {date}', date=viewing_date.isoformat()) }}{% else %}{{ t("Today's Meals") }}{% endif %}

{{ t('◀ Prev') }} {{ viewing_date.isoformat() }} {{ t('Next ▶') }} {% if viewing_date != today %} {{ t('Today') }} {% endif %}
{% if not dashboard.users %}

{{ t('No registered users yet. Ask household members to register!') }}

{% else %}
{% for period in dashboard.periods %} {% endfor %} {% if is_admin %} {% endif %} {% for user in dashboard.users %} {% set is_me = user.id == current_user_id %} {% for period in dashboard.periods %} {% set resp = user.responses[period.meal_type] %} {% endfor %} {% if is_admin and not is_me and not user.is_admin %} {% elif is_admin %} {% endif %} {% endfor %}
{{ t('User') }}{{ t(period.meal_type|capitalize) }}
{{ user.username }} {% if user.is_admin %}{{ t('admin') }}{% endif %} {% if is_me %}{{ t('you') }}{% endif %} {% 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 %}
{% endif %}
{{ t('⚙ Account Settings') }}

{{ t('Delete My Account') }}

🔔 {{ t('Ntfy Notifications') }}

{{ t('Get meal reminders on your phone via ntfy.') }}

{% if is_admin %}

🕐 {{ t('Household Timezone') }}

{{ t('Used to send reminders at 10:00 (lunch) and 16:00 (dinner) local time.') }}

{% endif %} {% if is_admin %}

{{ t('Delete Household') }}

{{ t('This will remove all users and all data in this household.') }}

{% endif %}
{% endblock %}