Sith/forum/templates/forum/forum.jinja

66 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-01-21 02:42:06 +00:00
{% extends "core/base.jinja" %}
2017-01-28 23:16:41 +00:00
{% from 'forum/macros.jinja' import display_forum, display_topic %}
{% block title %}
{{ forum }}
{% endblock %}
2017-01-21 02:42:06 +00:00
{% block content %}
2017-01-21 21:47:30 +00:00
<div>
<a href="{{ url('forum:main') }}">{% trans %}Forum{% endtrans %}</a>
2017-01-21 03:19:15 +00:00
{% for f in forum.get_parent_list() %}
> <a href="{{ f.get_absolute_url() }}">{{ f }}</a>
{% endfor %}
> <a href="{{ forum.get_absolute_url() }}">{{ forum }}</a>
2017-01-21 21:47:30 +00:00
</div>
2017-01-21 02:42:06 +00:00
<h3>{{ forum.name }}</h3>
<p>
{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<a href="{{ url('forum:new_forum') }}?parent={{ forum.id }}">{% trans %}New forum{% endtrans %}</a> <br/>
{% endif %}
<a href="{{ url('forum:new_topic', forum_id=forum.id) }}">{% trans %}New topic{% endtrans %}</a>
</p>
{% if forum.children.exists() %}
<div>
<div class="ib w_big">
2017-02-24 16:22:13 +00:00
{% trans %}Title{% endtrans %}
</div>
<div class="ib w_small">
<div class="ib w_medium">
2017-02-24 16:22:13 +00:00
{% trans %}Topics{% endtrans %}
</div>
<div class="ib w_small">
2017-02-24 16:22:13 +00:00
{% trans %}Last message{% endtrans %}
</div>
</div>
</div>
2017-01-21 02:42:06 +00:00
{% for f in forum.children.all() %}
{{ display_forum(f, user) }}
2017-01-21 02:42:06 +00:00
{% endfor %}
{% endif %}
{% if topics %}
<div>
<div class="ib w_medium">
2017-02-24 16:22:13 +00:00
{% trans %}Title{% endtrans %}
</div>
<div class="ib w_medium">
<div class="ib w_small">
2017-02-24 16:22:13 +00:00
{% trans %}Author{% endtrans %}
</div>
<div class="ib w_medium">
2017-02-24 16:22:13 +00:00
{% trans %}Messages{% endtrans %}
</div>
<div class="ib w_small">
2017-02-24 16:22:13 +00:00
{% trans %}Last message{% endtrans %}
</div>
</div>
</div>
2017-01-21 11:28:32 +00:00
{% for t in topics %}
2017-01-28 23:16:41 +00:00
{{ display_topic(t, user) }}
2017-01-21 02:42:06 +00:00
{% endfor %}
{% endif %}
2017-01-21 02:42:06 +00:00
{% endblock %}