53 řádky
1.9 KiB
HTML
Spustitelný soubor
53 řádky
1.9 KiB
HTML
Spustitelný soubor
{% 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>
|
|
</div>
|
|
{% if !boards.is_empty() %}
|
|
<div class="infobox">
|
|
<div class="infobox-head">Nástěnky</div>
|
|
<div class="infobox-content">
|
|
<ul class="infobox-list">
|
|
{% for board in boards %}
|
|
<li><a href="/boards/{{ board.id }}">/{{ board.id }}/ - {{ board.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if !posts.is_empty() %}
|
|
<div class="infobox">
|
|
<div class="infobox-head">Nejnovější příspěvky</div>
|
|
<div class="infobox-content">
|
|
<ul class="infobox-list">
|
|
{% for post in posts %}
|
|
<li><b>/{{ post.board }}/</b>: <a href="{{ post.post_url() }}">{{ post.content_nomarkup|inline_post }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if !files.is_empty() %}
|
|
<div class="infobox">
|
|
<div class="infobox-head">Nejnovější soubory</div>
|
|
<div class="infobox-content">
|
|
<div class="post-files multi-files">
|
|
{% for post in files %}
|
|
<div class="post-file">
|
|
<a href="{{ post.post_url() }}">
|
|
<img class="thumb" src="{{ post.files.0[0].thumb_url() }}">
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|