68 lines
2.4 KiB
HTML
68 lines
2.4 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') }}" title="Share is publicly visible in the index">public</a>
|
|
{% else %}
|
|
<li>is <a href="{{ url_for('index') }}" title="Share not listed in the index unless you have logged in">unlisted</a>
|
|
{% endif %}
|
|
{% if expire %}
|
|
<li><span title="All share operations disabled after the date">expires {{ expire }}</span>
|
|
{% else %}
|
|
<li>never expires
|
|
{% endif %}
|
|
{% if overwrite == false %}
|
|
<li><span title="Uploaded files need to be uniquely named">overwriting is disabled</span>
|
|
{% endif %}
|
|
<li><a href="{{ url_for('download_zip',name=name) }}" title="Download all the files as one ZIP file. Total size of files must be less than {{ g.max_zip_size }} Mb">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>
|
|
<div id=list_description>{{ description }}</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>❖</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 %}
|