nekrochan/templates/board-catalog.html

43 řádky
1.3 KiB
HTML
Surový Normální zobrazení Historie

2023-12-11 15:18:43 +00:00
{% import "./macros/catalog-entry.html" as catalog_entry %}
{% import "./macros/post-actions.html" as post_actions %}
{% extends "base.html" %}
2024-02-17 21:24:39 +00:00
{% block theme %}{{ board.config.0.board_theme }}{% endblock %}
2023-12-11 15:18:43 +00:00
{% block title %}Katalog (/{{ board.id }}/){% endblock %}
{% block content %}
<div class="container">
<div class="center">
2023-12-16 12:51:50 +00:00
<img class="banner" src="/random-banner">
2023-12-11 15:18:43 +00:00
<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="get" action="/search">
<input name="board" type="hidden" value="{{ board.id }}">
<table class="form-table">
<tr>
<td>
<input name="query" type="text">
</td>
<td>
<input class="button" type="submit" value="Hledat">
</td>
</tr>
</table>
</form>
<hr>
2023-12-11 15:18:43 +00:00
<form method="post">
2023-12-18 17:00:25 +00:00
<div class="center">
2023-12-11 15:18:43 +00:00
{% for thread in threads %}
{% call catalog_entry::catalog_entry(thread, loop.index, board.config.0.page_size.into()) %}
{% endfor %}
</div>
<hr>
2023-12-25 13:53:44 +00:00
{% call post_actions::post_actions() %}
2023-12-11 15:18:43 +00:00
</form>
{% endblock %}