{% extends "base/base.html" %} {% import "widgets/editor.html" as widget_editor %} {% import "widgets/thread.html" as widget_thread with context %} {% import "widgets/user.html" as widget_user %} {% import "widgets/pagination.html" as widget_pagination with context %} {% import "widgets/attachments.html" as widget_attachments %} {% block title %}

Programme: {{ p.name }}

{% endblock %} {% block content %}
{% if p.thread.top_comment %} {% call widget_thread.thread_leader(p.thread.top_comment) %}
Posté le {{ p.date_created | dyndate }}
{{ widget_thread.post_actions(p) }}

{{ p.name }}

Infos infos infos
{{ p.thread.top_comment.text | md }} {{ widget_attachments.attachments(p.thread.top_comment) }} {% endcall %} {% endif %} {{ widget_pagination.paginate(comments, 'program_view', p) }} {{ widget_thread.thread(comments.items, p.thread.top_comment) }} {{ widget_pagination.paginate(comments, 'program_view', p) }} {% if V5Config.ENABLE_GUEST_POST or current_user.is_authenticated %}

Commenter le programme

{{ form.hidden_tag() }} {% if form.pseudo %}
{{ form.pseudo.label }} {{ form.pseudo }} {% for error in form.pseudo.errors %} {{ error }} {% endfor %} {{ form.ab }}
{% endif %} {{ widget_editor.text_editor(form.message, label=False) }}
{{ form.attachments.label }}
{{ form.attachments }} {% for error in form.attachments.errors %} {{ error }} {% endfor %}
{{ form.submit(class_='bg-ok') }}
{% endif %} {% endblock %}