beautify, hashed passwords and session ids

This commit is contained in:
Denis Lehmann 2022-04-14 00:14:37 +02:00
parent fbe71b389e
commit 7e4a7ad38f
5 changed files with 122 additions and 27 deletions

View file

@ -1,15 +1,21 @@
{% extends "base.html" %}
{% block nav_content %}
{% if config["upload"] %}
<div>
<div>
{% if config["upload"] %}
<form action="/{{ config["directory"] }}" enctype="multipart/form-data" method="post">
<label class="button upload">
<input type="file" name="file" onchange="this.form.submit()">
Upload
</label>
</form>
</div>
{% endif %}
{% endif %}
{% if config["hashed_password"] %}
<form action="/{{ config["directory"] }}" method="post">
<input hidden type="text" name="logout">
<input type="submit" class="button logout" value="Logout">
</form>
{% endif %}
</div>
{% endblock %}
{% block content %}
{% for f in files %}