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-27 19:45:41 +00:00
|
|
|
{% if notices %}
|
2012-03-28 15:31:50 +00:00
|
|
|
<a href="{% url notification_mark_all_seen %}">{% trans "Mark all unseen notices seen." %}</a>
|
2012-03-27 19:45:41 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
{% for notice in notices %}
|
|
|
|
|
|
|
|
{% if notice.is_unseen %}
|
|
|
|
<div class="unseen_notice">
|
|
|
|
{% else %}
|
|
|
|
<div class="notice">
|
|
|
|
{% endif %}
|
|
|
|
<span class="notice_type">[{% trans notice.notice_type.display %}]</span>
|
|
|
|
<span class="notice_message">{{ notice.message|safe }}</span>
|
|
|
|
<span class="notice_time">{{ notice.added }}</span>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<p>{% trans "No notices." %}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|