diff options
author | hiro <hiro@torproject.org> | 2019-06-14 18:21:12 +0200 |
---|---|---|
committer | hiro <hiro@torproject.org> | 2019-06-14 18:21:12 +0200 |
commit | 2604ef52b51424c42c2a06212ab745242de0fa58 (patch) | |
tree | 9e444336cc93007ddc4b03d8a651be0d68ebcd50 /share | |
parent | 35b524439ff0a1bf185dc22c01e92a1a937ac563 (diff) | |
download | onionshare-2604ef52b51424c42c2a06212ab745242de0fa58.tar.gz onionshare-2604ef52b51424c42c2a06212ab745242de0fa58.zip |
Clean up rendering logic between share and website mode
Diffstat (limited to 'share')
-rw-r--r-- | share/templates/send.html | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/share/templates/send.html b/share/templates/send.html index e0076c0f..490fddf4 100644 --- a/share/templates/send.html +++ b/share/templates/send.html @@ -28,24 +28,27 @@ <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_url_path }}/img/web_folder.png" /> - {{ info.basename }} + <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_url_path }}/img/web_file.png" /> - {{ info.basename }} + <a href="{{ info.basename }}"> + {{ info.basename }} + </a> </td> <td>{{ info.size_human }}</td> - <td></td> </tr> {% endfor %} </table> |