50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
{% extends "base/base.html" %}
|
||
|
||
{% block title %}
|
||
<h1>Forum de Planète Casio</h1>
|
||
{% endblock %}
|
||
|
||
{% block content %}
|
||
<section>
|
||
<p>
|
||
Bienvenue sur le forum de Planète Casio ! Vous pouvez créer des
|
||
nouveaux sujets ou poster des réponses avec un compte
|
||
{%- if not current_user.is_authenticated %}
|
||
ou en postant en tant qu'invité
|
||
{%- endif -%}
|
||
.
|
||
</p>
|
||
|
||
{% if main_forum == None %}
|
||
<p>Il n'y a aucun forum.</p>
|
||
{% else %}
|
||
|
||
{% for l1 in main_forum.sub_forums %}
|
||
{% if l1.is_default_accessible() or
|
||
(current_user.is_authenticated and current_user.can_access_forum(l1)) %}
|
||
<table class=forumlist>
|
||
<tr><th>{{ l1.name }}</th><th>Nombre de sujets</th></tr>
|
||
|
||
{% if l1.sub_forums == [] %}
|
||
<tr><td><a href='/forum{{ l1.url }}'>{{ l1.name }}</a></td>
|
||
<td>{{ l1.topics.count() }}</td></tr>
|
||
<tr><td>{{ l1.descr }}</td><td></td></tr>
|
||
{% endif %}
|
||
|
||
{% for l2 in l1.sub_forums %}
|
||
{% if l2.is_default_accessible() or
|
||
(current_user.is_authenticated and current_user.can_access_forum(l2)) %}
|
||
<tr><td><a href='/forum{{ l2.url }}'>{{ l2.name }}</td>
|
||
<td>{{ l2.topics.count() }}</td></tr>
|
||
<tr><td>{{ l2.descr }}</td><td></td></tr>
|
||
{% endif %}
|
||
{% endfor %}
|
||
|
||
</table>
|
||
{% endif %}
|
||
{% endfor %}
|
||
|
||
{% endif %}
|
||
</section>
|
||
{% endblock %}
|