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

View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<form action="/{{ config["directory"] }}" method="post">
<input type="password" name="password">
<input type="submit">
</form>
{% endblock %}

7
templates/base.html Normal file
View file

@ -0,0 +1,7 @@
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
<title>{{ config["directory"] }} - {{ cloud_name }}</title>
<h1>{{ config["directory"] }}</h1>
{% block content %}{% endblock %}

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 %}