2023-10-16 21:58:50 +02:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2023-10-18 13:24:36 +02:00
|
|
|
|
<link rel="shortcut icon" href="/static/favicon.ico">
|
2023-10-16 21:58:50 +02:00
|
|
|
|
<link rel="stylesheet" href="/static/base.css" />
|
2023-10-17 18:25:38 +02:00
|
|
|
|
{% block meta %}
|
|
|
|
|
{% endblock %}
|
2023-10-16 21:58:50 +02:00
|
|
|
|
<title>RAR-Index – {{title}}</title>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<header>
|
2023-10-19 13:25:59 +02:00
|
|
|
|
<a href="/"><img src="/static/favicon.ico" alt="favicon"></a>
|
2023-10-16 21:58:50 +02:00
|
|
|
|
<span id="title">{{title}}</span>
|
|
|
|
|
<div id="container">
|
2023-10-18 17:24:59 +02:00
|
|
|
|
{% if login %}
|
|
|
|
|
<a href="/add"><button class="big-button"><b>+</b></button></a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<form action="/search" method="get">
|
2023-10-18 12:55:20 +02:00
|
|
|
|
<input type="text" name="q" placeholder="search">
|
|
|
|
|
<input type="submit" value="🔎" class="big-button" id="search-button">
|
|
|
|
|
</form>
|
|
|
|
|
{% if login %}
|
|
|
|
|
<a href="/user/{{userdata[0]}}"><button class="big-button">{{userdata[2]}}</button></a>
|
2023-10-20 15:27:25 +02:00
|
|
|
|
<a href="/logout"><button class="big-button">Logout</button></a>
|
2023-10-18 12:55:20 +02:00
|
|
|
|
{% else %}
|
|
|
|
|
<a href="/login"><button class="big-button">Login</button></a>
|
|
|
|
|
{% endif %}
|
2023-10-16 21:58:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
<div id="content">
|
|
|
|
|
{% block content %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|