Fix building the URL in CLI mode, and removing the slug from the download button in share mode

This commit is contained in:
Micah Lee 2019-05-21 10:08:54 -07:00
parent 7dce7eec45
commit 3ab99dbf3b
3 changed files with 20 additions and 28 deletions

View file

@ -15,11 +15,7 @@
<div class="right">
<ul>
<li>Total size: <strong>{{ filesize_human }}</strong> {% if is_zipped %} (compressed){% endif %}</li>
{% if slug %}
<li><a class="button" href='/{{ slug }}/download'>Download Files</a></li>
{% else %}
<li><a class="button" href='/download'>Download Files</a></li>
{% endif %}
</ul>
</div>
<img class="logo" src="/static/img/logo.png" title="OnionShare">