Files
flees/code/templates/list.html

63 lines
1.8 KiB
HTML

{% extends "layout.html" %}
{% block body %}
<div id=list_title><h1>{{ name }}</h1></div>
<div id=list_menu>
{% if upload %}
<div id=list_upload>
<form action={{ url_for('upload') }} method=post enctype=multipart/form-data>
<input type=hidden name=name value="{{ name|safe }}" />
<input type=file name=file onchange="document.getElementById('list_upload_button').disabled = false;">
<input id="list_upload_button" type=submit value=Upload disabled>
</form>
{% if overwrite == false %}
Overwriting disabled
{% endif %}
</div>
{% else %}
<div id=list_upload>
<input type=file name=file disabled>
<input type=submit value=Upload disabled>
</div>
{% endif %}
<div id=list_public>
{% if public %}
Share is <a href="{{ url_for('index') }}">public</a>
{% else %}
Share is <a href="{{ url_for('index') }}">unlisted</a>
{% endif %}
</div>
<div id=list_expire>
{% if expire %}
Share expires {{ expire }}
{% else %}
Share never expires
{% endif %}
</div>
<div id=list_logout>
<a href="{{ url_for('logout',name=name) }}">Logout</a> from this share
</div>
</div>
<div class=clear></div>
<table class="sortable" id="list_table">
<thead>
<tr>
<th>Name
<th class=td_right>Size
<th>Mod.Time
</tr>
</thead>
<tbody>
{% for entry in entries %}
<tr>
<td><a href="{{ url_for('download_file', name = name, filename = entry.name) }}">{{ entry.name }}</a>
{% if direct %}
&nbsp;<a href="{{ url_for('download_file', name = name, password = password, filename = entry.name ) }}" title="Direct share link">&#x2756;</a>
{% endif %}
<td class=td_right>{{ entry.size|safe }}
<td>{{ entry.mtime|safe }}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}