60 lines
1.8 KiB
HTML
60 lines
1.8 KiB
HTML
|
|
<!doctype html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<title>{% block title %}Text-Booru{% endblock %}</title>
|
||
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<header class="header">
|
||
|
|
<div class="container">
|
||
|
|
<h1 class="logo"><a href="{{ url_for('index') }}">text.booru</a></h1>
|
||
|
|
<nav class="nav">
|
||
|
|
<a href="{{ url_for('index') }}">Лента</a>
|
||
|
|
<a href="{{ url_for('add_route') }}">Добавить</a>
|
||
|
|
<a href="{{ url_for('mod_index') }}">Модерация</a>
|
||
|
|
<a href="{{ url_for('api_export_zip') }}">Экспорт</a>
|
||
|
|
</nav>
|
||
|
|
<form class="search" action="{{ url_for('search') }}" method="get">
|
||
|
|
<input name="q" placeholder="Поиск..." value="{{ request.args.get('q','') }}">
|
||
|
|
<button>🔎</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<main class="container">
|
||
|
|
<div class="content">
|
||
|
|
{% block content %}{% endblock %}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<aside class="sidebar">
|
||
|
|
<section>
|
||
|
|
<h3>Теги</h3>
|
||
|
|
<ul class="taglist">
|
||
|
|
{% for t in all_tags %}
|
||
|
|
<li><a href="{{ url_for('tag_page', name=t.name) }}">#{{ t.name }}</a> <span class="count">({{ t.cnt }})</span></li>
|
||
|
|
{% endfor %}
|
||
|
|
</ul>
|
||
|
|
</section>
|
||
|
|
<section>
|
||
|
|
<h3>Страницы</h3>
|
||
|
|
<ul>
|
||
|
|
{% if page and pages %}
|
||
|
|
<li>Страница {{ page }} / {{ pages }}</li>
|
||
|
|
{% for p in range(1, pages+1) %}
|
||
|
|
<li><a href="{{ url_for('index') }}?page={{ p }}">{{ p }}</a></li>
|
||
|
|
{% endfor %}
|
||
|
|
{% endif %}
|
||
|
|
</ul>
|
||
|
|
</section>
|
||
|
|
</aside>
|
||
|
|
</main>
|
||
|
|
|
||
|
|
<footer class="footer">
|
||
|
|
<div class="container">
|
||
|
|
<small>Прототип — хранение коротких текстов, tags, search, moderation</small>
|
||
|
|
</div>
|
||
|
|
</footer>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|