nekrochan/templates/board-catalog.html

30 řádky
948 B
HTML
Spustitelný soubor

{% import "./macros/catalog-entry.html" as catalog_entry %}
{% import "./macros/post-actions.html" as post_actions %}
{% extends "base.html" %}
{% block title %}Katalog (/{{ board.id }}/){% endblock %}
{% block content %}
<div class="container">
<div class="center">
{% if let Some(banner) = board.random_banner() %}
<img class="banner" src="{{ banner.file_url() }}">
{% endif %}
<h1 class="title">Katalog (<a href="/boards/{{ board.id }}">/{{ board.id }}/</a>)</h1>
<p class="description">{{ board.description }}</p>
<a href="/boards/{{ board.id }}">Index</a>
</div>
</div>
<hr>
<form method="post">
<div class="catalog">
{% for thread in threads %}
{% call catalog_entry::catalog_entry(thread, loop.index, board.config.0.page_size.into()) %}
{% endfor %}
</div>
<hr>
{% call post_actions::post_actions(tcx.perms) %}
</form>
{% endblock %}