rar-index-py/flask/templates/base.html
Michael Rodin c3bd73a068 Adding archives
Added functionality to add archives.
2023-10-19 13:25:59 +02:00

38 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="/static/favicon.ico">
<link rel="stylesheet" href="/static/base.css" />
{% block meta %}
{% endblock %}
<title>RAR-Index {{title}}</title>
</head>
<body>
<header>
<a href="/"><img src="/static/favicon.ico" alt="favicon"></a>
<span id="title">{{title}}</span>
<div id="container">
<!-- BUTTONS IF USER LOGGED IN -->
{% if login %}
<a href="/add"><button class="big-button"><b>&#x2B</b></button></a>
{% endif %}
<!------------------------------->
<form action="/search" method="get">
<input type="text" name="q" placeholder="search">
<input type="submit" value="&#x1F50E;" class="big-button" id="search-button">
</form>
{% if login %}
<a href="/user/{{userdata[0]}}"><button class="big-button">{{userdata[2]}}</button></a>
{% else %}
<a href="/login"><button class="big-button">Login</button></a>
{% endif %}
</div>
</header>
<div id="content">
{% block content %}
{% endblock %}
</div>
</body>
</html>