nekrochan/templates/overboard.html

48 řádky
1.9 KiB
HTML
Surový Normální zobrazení Historie

2024-03-16 11:20:50 +00:00
{% import "./macros/pagination.html" as pagination %}
{% import "./macros/post-actions.html" as post_actions %}
{% import "./macros/post.html" as post %}
{% extends "base.html" %}
{% block title %}Index nadnástěnky{% endblock %}
{% block content %}
<div class="container">
<div class="center">
<img class="banner" src="/random-banner">
<h1 class="title">Index nadnástěnky</h1>
<p class="description">Nově naťuknutá vlákna ze všech nástěnek</p>
<a href="/overboard/catalog">Katalog</a>
</div>
</div>
<hr>
<form method="post">
{% for (thread, replies) in threads %}
<div class="thread">
<b>Vlákno z <a href="/boards/{{ thread.board }}">/{{ thread.board }}/</a></b>
{% call post::post(boards[thread.board.as_str()], thread, false) %}
{% let count = replies.len() %}
{% if count > 5 %}
<p class="posts-omitted">
{% let omitted = count - 5 %}
{{ "Vynechán|Vynechány|Vynecháno"|czech_plural(omitted) }} {{ omitted }} {{ "příspěvek|příspěvky|příspěvků"|czech_plural(omitted) }}. <a href="{{ thread.post_url_notarget() }}">Zobrazit celé vlákno.</a>
</p>
{% for reply_post in replies.iter().rev().take(5).rev() %}
{% call post::post(boards[reply_post.board.as_str()], reply_post, true) %}
<br>
{% endfor %}
{% else %}
{% for reply_post in replies %}
{% call post::post(boards[reply_post.board.as_str()], reply_post, true) %}
<br>
{% endfor %}
{% endif %}
</div>
<hr>
{% endfor %}
{% call pagination::pagination("/overboard", pages, page) %}
<hr>
{% call post_actions::post_actions() %}
</form>
{% endblock %}