{% extends "notification/base.html" %} {% load humanize i18n %} {% load pagination_tags %} {% load custom_date %} {% block title %} {% trans "Notifications "%} - {{ block.super }} {% endblock %} {% block content %}

{% trans "Notifications" %}

{% autopaginate notices %} {% if notices %} {% trans "Mark all as seen" %} {% paginate %} {# 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")|title }}

{% for notice in date.list %} {% endfor %}
{% trans notice.notice_type.display %} {{ notice.message|safe }} {{ notice.added|custom_date:user }}
{% endfor %}
{% paginate %} {% else %}

{% trans "No notifications." %}

{% endif %}

{% trans "Settings" %}

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

{% trans "Primary email" %}: {{ user.email }}
(You can change this in your profile settings.)

{% else %}

You do not have a verified email address to which notifications can be sent. You can add one by editing your profile.

{% 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 %}