styling and docs

This commit is contained in:
Ville Rantanen
2018-02-18 10:46:44 +02:00
parent 43719a4811
commit 5000a881e7
4 changed files with 43 additions and 19 deletions

View File

@@ -17,7 +17,10 @@
</tr>
{% for entry in entries %}
<tr>
<td><a href="{{ url_for('list_view',name=entry.name) }}">{{ entry.name }}</a>
<td><a
href="{{ url_for('list_view',name=entry.name) }}"
title="{{ entry.description | safe }}"
>{{ entry.name }}</a>
{% if entry.password_set %}(Logged in){% endif %}
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}

View File

@@ -22,19 +22,19 @@
Share:
<ul>
{% if public %}
<li>is <a href="{{ url_for('index') }}">public</a>
<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') }}">unlisted</a>
<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>expires {{ expire }}
<li><span title="All share operations disabled after the date">expires {{ expire }}</span>
{% else %}
<li>never expires
{% endif %}
{% if overwrite == false %}
<li>overwriting is disabled
<li><span title="Uploaded files need to be uniquely named">overwriting is disabled</span>
{% endif %}
<li><a href="{{ url_for('download_zip',name=name) }}">Download as zip</a>
<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>