2012-03-29 03:25:41 +00:00
|
|
|
{% extends "notification/base.html" %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
2012-03-28 15:31:50 +00:00
|
|
|
{% block title %}{% trans "Notices" %}{% endblock %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
2012-03-28 15:31:50 +00:00
|
|
|
{% block extra_css %}
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/notices.css" />
|
|
|
|
{% endblock %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
|
|
|
{% block doccontent %}
|
2012-03-28 15:31:50 +00:00
|
|
|
|
|
|
|
<h2>Notices</h2>
|
2012-03-27 19:45:41 +00:00
|
|
|
|
2012-03-28 15:31:50 +00:00
|
|
|
<a href="{% url notification_notice_settings %}">
|
|
|
|
<div class="notices_menu">
|
|
|
|
{% trans "Change Settings" %}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
|
2012-03-29 19:34:28 +00:00
|
|
|
{% if unseen_count > 0 %}
|
|
|
|
<div class="notices_menu">
|
|
|
|
<a href="{% url notification_mark_all_seen %}">{% trans "Mark all notices seen" %}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-03-29 18:46:06 +00:00
|
|
|
<div class="comments"></div>
|
2012-03-29 20:26:06 +00:00
|
|
|
<br />
|
2012-03-29 19:34:28 +00:00
|
|
|
|
|
|
|
{% if unseen_count > 0 %}
|
|
|
|
{% for notice in notices %}
|
|
|
|
{% if notice.unseen %}
|
|
|
|
{% comment %}
|
|
|
|
Note: do not call is_unseen because it will mark the notification as seen,
|
|
|
|
and we're leaving that up to the user.
|
|
|
|
{% endcomment %}
|
|
|
|
<div class="notice">
|
|
|
|
{{ notice.message|safe }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2012-04-25 14:06:22 +00:00
|
|
|
<p>{% trans "You have no unseen notices." %}</p>
|
2012-03-29 19:34:28 +00:00
|
|
|
{% endif %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
|
|
|
{% endblock %}
|