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>
|
2024-01-15 15:06:25 +00:00
|
|
|
<div class="box">
|
|
|
|
<h2 class="headline">
|
|
|
|
<span>{{ news.title }}</span>
|
2024-02-18 19:25:38 +00:00
|
|
|
<span class="float-r">
|
2024-02-25 16:26:39 +00:00
|
|
|
{{ news.author }} - <time datetime="{{ news.created }}">{{ news.created|czech_datetime }}</time>
|
2024-02-18 19:25:38 +00:00
|
|
|
</span>
|
2024-01-15 15:06:25 +00:00
|
|
|
</h2>
|
|
|
|
<hr>
|
|
|
|
<div class="post-content">{{ news.content|safe }}</div>
|
|
|
|
</div>
|
2024-01-02 11:58:47 +00:00
|
|
|
</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>
|
2024-01-08 17:45:11 +00:00
|
|
|
<ul class="board-list">
|
2024-01-02 11:58:47 +00:00
|
|
|
{% 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 %}
|