34 lines
847 B
HTML
34 lines
847 B
HTML
|
{% extends "base/base.html" %}
|
||
|
{% import "widgets/editor.html" as widget_editor %}
|
||
|
|
||
|
{% block title %}
|
||
|
<a href='/forum'>Forum de Planète Casio</a> » <h1>{{ t.forum.name }}</h1>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<section>
|
||
|
<h1>{{ t.title }}</h1>
|
||
|
|
||
|
<div>{{ t.thread.top_comment.text }}</div>
|
||
|
|
||
|
{% for i, c in enumerate(t.thread.comments) %}
|
||
|
{% if c != t.thread.top_comment %}
|
||
|
<div>{{ c.text }}</div>
|
||
|
{% elif i != 0 %}
|
||
|
<div>Ce message est le top comment</div>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
|
||
|
<div class=form>
|
||
|
<h3>Commenter le sujet</h3>
|
||
|
<form action="" method="post" enctype="multipart/form-data">
|
||
|
{{ form.hidden_tag() }}
|
||
|
|
||
|
{{ widget_editor.text_editor(form.message, label=False) }}
|
||
|
|
||
|
<div>{{ form.submit(class_='bg-green') }}</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</section>
|
||
|
{% endblock %}
|