UpFast/templates/files.html

36 lines
964 B
HTML
Raw Normal View History

2023-11-01 16:32:47 +01:00
<!doctype html>
2023-03-23 21:00:39 +01:00
<html lang="en">
2023-11-01 16:32:47 +01:00
2023-03-23 21:00:39 +01:00
<head>
2023-11-01 16:32:47 +01:00
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="{{ url_for('static', path='/css/files.css') }}" rel="stylesheet" />
<title>UpFast: File List</title>
2023-03-23 21:00:39 +01:00
</head>
2023-11-01 16:32:47 +01:00
<body>
<h1>File List</h1>
2023-03-23 21:00:39 +01:00
2023-11-01 16:32:47 +01:00
{% for file in files %}
<hr />
<div class="file">
{% if file.fileType == "image" %}
<img src="/files/{{ file.name }}" />
{% elif file.fileType == "video" %}
<video controls src="/files/{{ file.name }}"></video>
{% elif file.fileType == "text" %}
<pre>{{ file.content }}</pre>
{% endif %}
<div class="info">
<a href="/files/{{ file.name }}" download>{{ file.name }}</a>
{% if not upload_only %}
<a href="/delete/{{ file.name }}" onclick="return confirm('Are you sure?')">delete!</a>
{% endif %}
</div>
</div>
{% endfor %}
2023-03-23 21:00:39 +01:00
</body>
2023-11-01 16:32:47 +01:00
2023-03-23 21:00:39 +01:00
</html>