2023-12-25 13:53:44 +00:00
|
|
|
{% import "./macros/board-links.html" as board_links %}
|
|
|
|
|
2023-12-11 15:18:43 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{ tcx.cfg.site.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-01-02 11:58:47 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="center">
|
|
|
|
<h1 class="title">{{ tcx.cfg.site.name }}</h1>
|
|
|
|
<p class="description">{{ tcx.cfg.site.description }}</p>
|
|
|
|
<p class="board-links big">{% call board_links::board_links() %}</p>
|
|
|
|
</div>
|
|
|
|
{% if let Some(news) = news %}
|
|
|
|
<table class="data-table">
|
|
|
|
<tr>
|
|
|
|
<th>Novinky</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h2 class="headline">
|
|
|
|
<span>{{ news.title }}</span>
|
|
|
|
<span class="float-r">{{ news.author }} - {{ news.created|czech_datetime }}</span>
|
|
|
|
</h2>
|
|
|
|
<hr>
|
|
|
|
<pre class="post-content">{{ news.content|safe }}</pre>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/news">Zobrazit všechny novinky...</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
<table class="data-table fixed-table center">
|
|
|
|
<tr>
|
|
|
|
<th>Nástěnky</th>
|
|
|
|
<th>Statistika</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<ul class="infobox-list">
|
|
|
|
{% for board in boards %}
|
|
|
|
<li><a href="/boards/{{ board.id }}">/{{ board.id }}/ - {{ board.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% let board_count = tcx.boards.len() %}
|
|
|
|
Celkem {{ "byl vytvořen|byly vytvořeny|bylo vytvořeno"|czech_plural(stats.post_count) }} 
|
|
|
|
<b>{{ stats.post_count }}</b> {{ "příspěvek|příspěvky|příspěvků"|czech_plural(stats.post_count) }} 
|
|
|
|
na <b>{{ board_count }}</b> {{ "nástěnce|nástěnkách|nástěnkách"|czech_plural(board_count) }}.
|
|
|
|
<br>
|
|
|
|
Aktuálně {{ "je nahrán|jsou nahrány|je nahráno"|czech_plural(stats.file_count) }} <b>{{ stats.file_count }}</b> 
|
|
|
|
{{ "soubor|soubory|souborů"|czech_plural(stats.file_count) }}, celkem <b>{{ stats.file_size|filesizeformat }}</b>.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2023-12-11 15:18:43 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|