nekrochan/templates/thread.html

44 řádky
1.3 KiB
HTML

{% import "./macros/post-actions.html" as post_actions %}
{% import "./macros/post-form.html" as post_form %}
{% import "./macros/post.html" as post %}
{% extends "base.html" %}
{% block theme %}{{ board.config.0.board_theme }}{% endblock %}
{% block title %}/{{ board.id }}/ - {{ thread.content_nomarkup|inline_post }}{% endblock %}
{% block scripts %}
<script src="/static/js/captcha.js"></script>
<script src="/static/js/live.js"></script>
<script src="/static/js/post-form.js"></script>
{% endblock %}
{% block content %}
<div class="container">
<div class="center">
<img class="banner" src="/random-banner">
<h1 class="title">/{{ board.id }}/ - {{ board.name }}</h1>
<p class="description">{{ board.description }}</p>
<a href="/boards/{{ board.id }}/catalog">Katalog</a>
<br>
<br>
<a class="box inline-block open-post-form" href="#post-form">[Nová odpověď]</a>
<br>
<br>
</div>
{% call post_form::post_form(board, true, thread.id) %}
</div>
<hr>
<form method="post">
<div class="thread">
{% call post::post(board, thread, false) %}
{% for reply_post in replies %}
{% call post::post(board, reply_post, true) %}
<br>
{% endfor %}
</div>
<hr>
{% call post_actions::post_actions() %}
</form>
{% endblock %}