Files
flees/code/templates/list.html
2018-02-15 22:22:19 +02:00

67 lines
2.0 KiB
HTML

{% extends "layout.html" %}
{% block body %}
<div id=list_menu>
{% if upload %}
<div id=list_upload>
<form id="upload_form" action={{ url_for('upload') }} method=post enctype=multipart/form-data>
<input id="list_upload_name" type=hidden name=name value="{{ name|safe }}" />
<input type=hidden name=from_gui value="true" />
<input id="list_upload_select" type=file name=file
onchange="FileSelectHandler(event)" multiple="multiple"><br>
<input id="list_upload_button" type=submit value=Upload>
<div id="progress"></div>
</form>
</div>
{% else %}
<div id=list_upload>
<input type=file name=file disabled>
<input type=submit value=Upload disabled>
</div>
{% endif %}
<div id=list_info>
Share:
<ul>
{% if public %}
<li>is <a href="{{ url_for('index') }}">public</a>
{% else %}
<li>is <a href="{{ url_for('index') }}">unlisted</a>
{% endif %}
{% if expire %}
<li>expires {{ expire }}
{% else %}
<li>never expires
{% endif %}
{% if overwrite == false %}
<li>overwriting is disabled
{% endif %}
<li><a href="{{ url_for('download_zip',name=name) }}">Download as zip</a>
<li><a href="{{ url_for('logout',name=name) }}">Logout</a>
</div>
</div>
<div id=list_left>
<div id=list_title><h1>{{ name }}</h1></div>
<table class="sortable" id="list_table">
<thead>
<tr>
<th>Name
<th class=td_right>Size(MB)
<th>Mod.Time
</tr>
</thead>
<tbody>
{% for entry in entries %}
<tr>
<td>
{% if direct %}
<a href="{{ url_for('download_direct', name = name, password = entry.token, filename = entry.name ) }}" title="Direct share link" class=direct>&#x2756;</a>
{% endif %}
<a href="{{ url_for('download_file', name = name, filename = entry.name) }}">{{ entry.name }}</a>
<td class=td_right>{{ entry.size|safe }}
<td>{{ entry.mtime|safe }}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}