rar-index-py/flask/templates/base.html
Michael Rodin dda864a92e login
Added login functionality. It's a bit clunky, but it deas what it needs to. Testing needed.
The header now has a search bar, but the page itself needs to be created.
2023-10-18 12:55:20 +02:00

31 lines
No EOL
887 B
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="stylesheet" href="/static/base.css" />
{% block meta %}
{% endblock %}
<title>RAR-Index {{title}}</title>
</head>
<body>
<header>
<span id="title">{{title}}</span>
<div id="container">
<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>