{% extends "notification/base.html" %} {% load humanize %} {% load i18n %} {% load pagination_tags %} {% load timezone_filters %} {% block head_title %}{% trans "Notices" %}{% endblock %} {% block body %} {% autopaginate notices %} {% if notices %} {% trans "Mark all unseen notices seen" %} {# TODO: get timezone support working with regroup #} {% regroup notices by added.date as notices_by_date %} {% for date in notices_by_date %}

{{ date.grouper|naturalday:_("MONTH_DAY_FORMAT")|capfirst }}

{% for notice in date.list %} {% if notice.is_unseen %}
{% else %}
{% endif %} [{% trans notice.notice_type.display %}] {{ notice.message|safe }} {{ notice.added|localtime:account.timezone|time:"P" }}
{% endfor %} {% endfor %} {% paginate %} {% else %}

{% trans "No notices." %}

{% endif %} {% endblock %}