{% 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) %}
{{ widget_thread.post_actions(p) }}

{{ p.name }}

Posté : {{ p.date_created | dyndate }}
Modifié : {{ p.date_modified | dyndate }}
Version : {{ p.version or "(non spécifié)" }}
Taille : {{ p.size or "(non spécifié)" }}
Score au progrank: {{ p.progrank }}
Tests : TODO (si si ça vient)
[Lien pour soumettre un test]
[Lien pour proposer au label]
Total de téléchargements : TODO
{%- for tag in p.tags %} {{ tag.tag.pretty }} {% endfor -%}

{% if p.event %} Ce programme a participé à l'événement {{ p.event.name }}!
{% endif %} {{ 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 %}