diff options
author | Micah Lee <micah@micahflee.com> | 2019-10-13 14:35:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-13 14:35:40 -0400 |
commit | 896659c6963c14c4e047cff7f3d421977060ed23 (patch) | |
tree | 660468dd7478fb001ced211a4a33ae28a1b5f9a4 /share/templates/send.html | |
parent | bbf6c02da645fcd4fc50db18dd341178ad4fa2e6 (diff) | |
parent | 7d24bf9ffcd1e21e087431c21bfc658803a61ab6 (diff) | |
download | onionshare-2.2.tar.gz onionshare-2.2.zip |
Merge pull request #1048 from micahflee/developv2.2
Version 2.2
Diffstat (limited to 'share/templates/send.html')
-rw-r--r-- | share/templates/send.html | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/share/templates/send.html b/share/templates/send.html index 2a56829a..941c4130 100644 --- a/share/templates/send.html +++ b/share/templates/send.html @@ -3,8 +3,8 @@ <head> <title>OnionShare</title> - <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon"> - <link rel="stylesheet" rel="subresource" type="text/css" href="/static/css/style.css" media="all"> + <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon"> + <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all"> <meta name="onionshare-filename" content="{{ filename }}"> <meta name="onionshare-filesize" content="{{ filesize }}"> </head> @@ -15,45 +15,54 @@ <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"> + <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare"> <h1>OnionShare</h1> </header> + {% if breadcrumbs %} + <ul class="breadcrumbs"> + {% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span class="sep">‣</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li> + </ul> + {% endif %} + <table class="file-list" id="file-list"> <tr> <th id="filename-header">Filename</th> <th id="size-header">Size</th> <th></th> </tr> - {% for info in file_info.dirs %} + {% for info in dirs %} <tr> <td> - <img width="30" height="30" title="" alt="" src="/static/img/web_folder.png" /> - {{ info.basename }} + <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" /> + <a href="{{ info.basename }}"> + {{ info.basename }} + </a> </td> - <td>{{ info.size_human }}</td> - <td></td> + <td>—</td> </tr> {% endfor %} - {% for info in file_info.files %} + + {% for info in files %} <tr> <td> - <img width="30" height="30" title="" alt="" src="/static/img/web_file.png" /> + <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> - <td></td> </tr> {% endfor %} </table> - <script async src="/static/js/send.js" charset="utf-8"></script> + <script async src="{{ static_url_path }}/js/send.js" charset="utf-8"></script> </body> </html> |