regluit/frontend/templates/notification/notices.html

50 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'notification/base.html' %}
2018-02-21 16:12:19 +00:00
{% load sass_tags %}
{% 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 %}
2018-02-21 16:12:19 +00:00
<link type="text/css" rel="stylesheet" href="{% sass_src 'scss/notices.scss' %}" />
2012-03-28 15:31:50 +00:00
{% endblock %}
{% block doccontent %}
2012-03-28 15:31:50 +00:00
<h2>Notices</h2>
2015-04-28 03:24:02 +00:00
<a href="{% url 'notification_notice_settings' %}">
2012-03-28 15:31:50 +00:00
<div class="notices_menu">
{% trans "Change Settings" %}
</div>
</a>
{% if unseen_count > 0 %}
<div class="notices_menu">
2015-04-28 03:24:02 +00:00
<a href="{% url 'notification_mark_all_seen' %}">{% trans "Mark all notices seen" %}</a>
</div>
2018-02-21 17:03:01 +00:00
{% elif notice.unseen or request.GET.mode != 'seen' %}
<div class="notices_menu">
<a href="{% url 'notification_notices' %}?mode=seen">{% trans "Show seen notices" %}</a>
</div>
{% else %}
<div class="notices_menu">
<a href="{% url 'notification_notices' %}">{% trans "Show only unseen notices" %}</a>
</div>
{% endif %}
<div class="comments"></div>
2012-03-29 20:26:06 +00:00
<br />
2018-02-21 17:03:01 +00:00
{% if unseen_count > 0 or request.GET.mode == 'seen' %}
{% for notice in notices %}
2018-02-21 17:03:01 +00:00
{% if notice.unseen or request.GET.mode == 'seen' %}
<div class="notice">
{{ notice.message|safe }}
</div>
{% endif %}
{% endfor %}
{% else %}
2018-02-21 17:03:01 +00:00
<p>You have no {% if unseen_count == 0 %}unseen {% endif %} notices.</p>
{% endif %}
{% endblock %}