{% extends 'base.html' %} {% from 'macros.html' import create_post_from, page_counter_thread %} {% block title %} UCHAN /thread №{{thread.id}} {% endblock %} {% block body %}

/{{board.name}}/thread №{{thread.id}}

Home | Return to board | Help

{{create_post_from(board)}}
{% if posts | length > 0 %} {{page_counter_thread(page, pages_count, thread.id)}} {% endif %}
{{thread.creation_date_()}} Thread №{{thread.id}} [Return to board] [Delete]

{{thread.title}}

{{custom_format(thread.message) | safe}}
{% if posts | length > 0 %} {% for i in range(posts_per_thread * page, posts_per_thread + posts_per_thread * page) %} {% if i < posts | length %}
{{posts[i].creation_date_()}} Post №{{posts[i].id}} {% if posts[i].check_for_edit(edit_token) %} [Edit] [Delete] (Time left: {{posts[i].edit_time_left_str()}}) {% else %} [Delete] {% endif %}
{{custom_format(posts[i].message) | safe}}
{% endif %} {% endfor %}
{{page_counter_thread(page, pages_count, thread.id)}} {% set posts_on_page = posts | length - posts_per_thread * page %} {% if posts_on_page > 5 %}
{{create_post_from(board)}}
{% endif %} {% else %}

Posts not found. Create a new one

{% endif %} {% endblock %}