initial commit
This commit is contained in:
commit
7e4df5c34c
8 changed files with 232 additions and 0 deletions
7
templates/authenticate.html
Normal file
7
templates/authenticate.html
Normal 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
7
templates/base.html
Normal 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
19
templates/files.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue