initial commit
This commit is contained in:
commit
7e4df5c34c
8 changed files with 232 additions and 0 deletions
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