rar-index-py/flask/templates/base.html
Michael Rodin 978c634067 Search function
Added a (hopefully) functioning search function.
2023-10-18 17:24:59 +02:00

37 lines
No EOL
1.1 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>
<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>