diff options
author | Micah Lee <micah@micahflee.com> | 2019-09-01 20:36:30 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-09-01 20:36:30 -0700 |
commit | 6561d71edde50e3df4e1e585940b9a9d0d8c9a2b (patch) | |
tree | 604aef0cb12b18b5997f07a765ebc319dbfbd0b7 /share | |
parent | 1c465b40fe13d7fe9db445d2d74d860a71c66a68 (diff) | |
download | onionshare-6561d71edde50e3df4e1e585940b9a9d0d8c9a2b.tar.gz onionshare-6561d71edde50e3df4e1e585940b9a9d0d8c9a2b.zip |
Only allow downloading of individual files if it is enabled in settings, and stop sharing automatically isn't
Diffstat (limited to 'share')
-rw-r--r-- | share/static/css/style.css | 4 | ||||
-rw-r--r-- | share/templates/send.html | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/share/static/css/style.css b/share/static/css/style.css index a904c035..bc986e57 100644 --- a/share/static/css/style.css +++ b/share/static/css/style.css @@ -56,6 +56,10 @@ header .right ul li { cursor: pointer; } +a.button:visited { + color: #ffffff; +} + .close-button { color: #ffffff; background-color: #c90c0c; diff --git a/share/templates/send.html b/share/templates/send.html index 490fddf4..916b3bfe 100644 --- a/share/templates/send.html +++ b/share/templates/send.html @@ -44,9 +44,13 @@ <tr> <td> <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" /> + {% if download_individual_files %} <a href="{{ info.basename }}"> {{ info.basename }} </a> + {% else %} + {{ info.basename }} + {% endif %} </td> <td>{{ info.size_human }}</td> </tr> |