mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
463e0b7055
Signed-off-by: Skia <skia@libskia.so>
35 lines
1003 B
Django/Jinja
35 lines
1003 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from 'forum/macros.jinja' import display_topic %}
|
|
|
|
{% block title %}
|
|
{% trans %}Last unread messages{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
<a href="{{ url('forum:main') }}">Forum</a> >
|
|
</p>
|
|
<div id="forum">
|
|
<h3>{% trans %}Forum{% endtrans %}</h3>
|
|
<h4>{% trans %}Last unread messages{% endtrans %}</h4>
|
|
<p>
|
|
<a class="ib" href="{{ url('forum:mark_all_as_read') }}">{% trans %}Mark all as read{% endtrans %}</a>
|
|
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a>
|
|
</p>
|
|
{% for t in page_obj.object_list %}
|
|
{{ display_topic(t, user, True) }}
|
|
{% endfor %}
|
|
|
|
<p style="text-align: right; background: #d8e7f3;">
|
|
{% for p in paginator.page_range %}
|
|
<span class="ib" style="background: {% if p == paginator.number %}white{% endif %}; margin: 0;">
|
|
<a href="?page={{ p }}">{{ p }}</a>
|
|
</span>
|
|
{% endfor %}
|
|
</p>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|
|
|