{% extends "notification/base.html" %} {% load humanize i18n %} {% load pagination_tags %} {% load custom_date %} {% block title %} {% trans "Notices "%} - Account - {{ block.super }} {% endblock %} {% block extra_head %} {{ block.super}} {% endblock %} {% block content %} {% include "django_messages/inlines/navigation.html" %}

{% trans "Notices" %}

{% 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 }}
{% endfor %} {% endfor %}
{% paginate %}
{% else %}

{% trans "No notices." %}

{% endif %}


{% trans "Settings" %}

{% url acct_email as email_url %} {% if user.email %}

{% trans "Primary email" %}:
{{ user.email }}
(change under Account)

{% else %}

{% trans "Note" %}: You do not have a verified email address to which notices can be sent. You can add one by going to Account.

{% endif %}
{# doubt this easy to do in uni-form #} {% for header in notice_settings.column_headers %} {% endfor %} {% for row in notice_settings.rows %} {% for cell in row.cells %} {% endfor %} {% endfor %}
{% trans "Notification Type" %}{{ header }}
{% trans row.notice_type.display %}
{% trans row.notice_type.description %}
{% csrf_token %}
{% endblock %}