initial commit

This commit is contained in:
Denis Lehmann 2022-04-10 23:39:47 +02:00
commit 7e4df5c34c
8 changed files with 232 additions and 0 deletions

19
templates/files.html Normal file
View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block content %}
{% if config["upload"] %}
<form action="/{{ config["directory"] }}" enctype="multipart/form-data" method="post">
<input type="file" name="file">
<input type="submit">
</form>
{% endif %}
<ul>
{% for f in files %}
<li>
<span>{{ f["name"] }} </span>
{% if config["download"] %}
<a href="{{ config["directory"] }}/{{ f["name"] }}">Download</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endblock %}