nekrochan/templates/index.html

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

2023-12-11 15:18:43 +00:00
{% 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>
2023-12-16 18:05:47 +00:00
{% 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 %}
2023-12-11 15:18:43 +00:00
{% if !posts.is_empty() %}
<div class="infobox">
<div class="infobox-head">
Nejnovější příspěvky
</div>
<div class="infobox-content">
2023-12-16 18:05:47 +00:00
<ul class="infobox-list">
2023-12-11 15:18:43 +00:00
{% 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 %}