{% extends 'base.html' %} {% from 'macros.html' import captcha_input, page_counter_board %} {% block title %} UCHAN /{{board.name}} {% endblock%} {% block body %}

/{{board.name}}

Home | Settings | Delete | Help
{% if board.description != None %} {% if board.description | length > 0 %}
{{custom_format(board.description) | safe}}
{% endif %} {% endif %}
{% if board.forbid_threads %} {% else %} {% endif %}
{{captcha_input()}}

{% if threads|length > 0 %} {{page_counter_board(page, pages_count, board.id)}} {% endif %} {% if threads|length > 0 %} {% for i in range(threads_per_board * page, threads_per_board + threads_per_board * page) %} {% if i < threads | length %}
{{threads[i].creation_date_()}} Thread №{{threads[i].id}} Posts: {{threads[i].posts | count}} [Open thread] [Delete]

{{threads[i].title}}

{{custom_format(threads[i].message) | safe}}
{% if threads[i].posts | count > 5 %}
hidden posts: {{ threads[i].posts | count - 5 }}
{% endif %} {% for post in threads[i].posts[-5:] %}
{{post.creation_date_()}} Post №{{post.id}}
{{custom_format(post.message) | safe}}
{% endfor %} {% endif %} {% endfor %}
{{page_counter_board(page, pages_count, board.id)}} {% else %}

Threads not found. Create a new one

{% endif %} {% endblock %}