summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-09-20 09:14:56 -0700
committerMicah Lee <micah@micahflee.com>2018-09-20 09:14:56 -0700
commit324538bdd36382919d7f01c99b16b9b82b56603f (patch)
tree3f531476ab446375ceca3bee0e7959970d030904 /share
parentdbae5016895f1e29a15188aed4f21d0afb3350b4 (diff)
downloadonionshare-324538bdd36382919d7f01c99b16b9b82b56603f.tar.gz
onionshare-324538bdd36382919d7f01c99b16b9b82b56603f.zip
When there is only 1 file being shared, don't zip it
Diffstat (limited to 'share')
-rw-r--r--share/templates/send.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/share/templates/send.html b/share/templates/send.html
index df1d3563..e7e1fde0 100644
--- a/share/templates/send.html
+++ b/share/templates/send.html
@@ -10,18 +10,18 @@
<body>
<header class="clearfix">
- <div class="right">
- <ul>
- <li>Total size: <strong>{{ filesize_human }}</strong> (compressed)</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">
- <h1>OnionShare</h1>
+ <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">
+ <h1>OnionShare</h1>
</header>
<table class="file-list" id="file-list">