nekrochan/templates/index.html

66 řádky
2.5 KiB
HTML
Surový Trvalý odkaz Normální zobrazení Historie

2024-03-16 11:20:50 +00:00
{% import "./macros/board-links.html" as board_links %}
{% extends "base.html" %}
{% block title %}{{ tcx.cfg.site.name }}{% endblock %}
{% block content %}
<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>
<div class="box">
<h2 class="headline">
<span>{{ news.title }}</span>
<span class="float-r">
{{ news.author }} - <time datetime="{{ news.created }}">{{ news.created|czech_datetime }}</time>
</span>
</h2>
<hr>
<div class="post-content">{{ news.content|safe }}</div>
</div>
</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="board-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) }}&#32;
<b>{{ stats.post_count }}</b> {{ "příspěvek|příspěvky|příspěvků"|czech_plural(stats.post_count) }}&#32;
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>&#32;
{{ "soubor|soubory|souborů"|czech_plural(stats.file_count) }}, celkem <b>{{ stats.file_size|filesizeformat }}</b>.
</td>
</tr>
</table>
</div>
{% endblock %}