big rewrite of token system
This commit is contained in:
@@ -31,8 +31,12 @@
|
||||
{% else %}
|
||||
<li>never expires
|
||||
{% endif %}
|
||||
{% if overwrite == false %}
|
||||
<li><span title="Uploaded files need to be uniquely named">overwriting is disabled</span>
|
||||
{% if upload %}
|
||||
{% if overwrite %}
|
||||
<li><span title="Uploaded files with existing names are overwritten">uploads overwrite</span>
|
||||
{% else %}
|
||||
<li><span title="Uploaded files with existing names are versioned">uploads versioned</span>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
@@ -54,7 +58,7 @@
|
||||
<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>
|
||||
<a href="{{ url_for('download_direct', name = name, token = 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 }}
|
||||
|
||||
Reference in New Issue
Block a user