mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-18 12:13:24 +00:00
606f1af4d5
Signed-off-by: Skia <skia@libskia.so>
34 lines
902 B
Django/Jinja
34 lines
902 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from 'forum/macros.jinja' import display_topic %}
|
|
|
|
{% block title %}
|
|
{% trans %}Favorite topics{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
<a href="{{ url('forum:main') }}">Forum</a> >
|
|
<a href="{{ url('forum:favorite_topics') }}">{% trans %}Favorite topics{% endtrans %}</a>
|
|
</p>
|
|
<div id="forum">
|
|
<h3>{% trans %}Forum{% endtrans %}</h3>
|
|
<h4>{% trans %}Favorite topics{% endtrans %}</h4>
|
|
{% for t in page_obj.object_list %}
|
|
{% if user.can_view(t) %}
|
|
{{ display_topic(t, user) }}
|
|
{% endif %}
|
|
{% 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 %}
|
|
|
|
|
|
|