{% extends "mobile/base.html" %} {% load i18n %} {% comment %} M7 -- design_handoff_rosterchief_platform/README.md's M7 section ("Inbox"). See NotificationsView's own docstring for why this is a flat, generic, day-grouped list rather than the mockup's per-type cards: the underlying model has no type/category field, and nothing but news publishing creates a notification yet. Scoped to every managed_people, not just scope_person -- same as unread_notification_count itself (mobile/mixins.py). {% endcomment %} {% block content %} {% if not managed_people %}

{% trans "No one to show yet" %}

{% trans "Once you're linked to a member record, their notifications will show up here." %}

{% else %}
{% trans "Enable push notifications" %}
{% trans "Get notified on this device as soon as something new comes in." %}
{% if unread_notification_count %}
{% csrf_token %}
{% endif %} {% if not today and not earlier_this_week and not older %}

{% trans "Nothing here yet." %}

{% else %} {% if today %}
{% trans "Today" %}
{% for row in today %} {% include "mobile/_notification_row.html" %} {% endfor %}
{% endif %} {% if earlier_this_week %}
{% trans "Earlier this week" %}
{% for row in earlier_this_week %} {% include "mobile/_notification_row.html" %} {% endfor %}
{% endif %} {% if older %}
{% trans "Older" %}
{% for row in older %} {% include "mobile/_notification_row.html" %} {% endfor %}
{% endif %} {% endif %} {% endif %} {% endblock content %}