44 lines
1.0 KiB
HTML
44 lines
1.0 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 %}
|
||
<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 }}</td>
|
||
<td>{{ l1.topics | length }}</td></tr>
|
||
<tr><td>{{ l1.descr }}</td><td></td></tr>
|
||
{% endif %}
|
||
|
||
{% for l2 in l1.sub_forums %}
|
||
<tr><td><a href='/forum{{ l2.url }}'>{{ l2.name }}</td>
|
||
<td>{{ l2.topics | length }}</td></tr>
|
||
<tr><td>{{ l2.descr }}</td><td></td></tr>
|
||
{% endfor %}
|
||
|
||
</table>
|
||
{% endfor %}
|
||
|
||
{% endif %}
|
||
</section>
|
||
{% endblock %}
|