regluit/frontend/templates/notification/notices.html

44 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "notification/base.html" %}
{% load i18n %}
2012-03-28 15:31:50 +00:00
{% block title %}{% trans "Notices" %}{% endblock %}
2012-03-28 15:31:50 +00:00
{% block extra_css %}
<link type="text/css" rel="stylesheet" href="/static/css/notices.css" />
{% endblock %}
{% block doccontent %}
2012-03-28 15:31:50 +00:00
<h2>Notices</h2>
2012-03-28 15:31:50 +00:00
<a href="{% url notification_notice_settings %}">
<div class="notices_menu">
{% trans "Change Settings" %}
</div>
</a>
{% if notices %}
2012-03-28 15:31:50 +00:00
<a href="{% url notification_mark_all_seen %}">{% trans "Mark all unseen notices seen." %}</a>
<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 %}