diff options
author | hiro <hiro@torproject.org> | 2019-04-19 14:25:42 +0200 |
---|---|---|
committer | hiro <hiro@torproject.org> | 2019-04-23 16:08:14 +0200 |
commit | 2d43588a3bfd6afee8bcc4239a3259870bfc504b (patch) | |
tree | 3559a957bfa193bcdede043e5348f8ca5469ac90 /share | |
parent | 925cd4718798b80f82ff3c3fd1e4aaedaf3cc677 (diff) | |
download | onionshare-2d43588a3bfd6afee8bcc4239a3259870bfc504b.tar.gz onionshare-2d43588a3bfd6afee8bcc4239a3259870bfc504b.zip |
Add website sharing and directory listing cli-only
Diffstat (limited to 'share')
-rw-r--r-- | share/templates/listing.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/share/templates/listing.html b/share/templates/listing.html new file mode 100644 index 00000000..a514e5d2 --- /dev/null +++ b/share/templates/listing.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<html> + <head> + <title>OnionShare</title> + <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" /> + <link href="/static/css/style.css" rel="stylesheet" type="text/css" /> + </head> + <body> + + <header class="clearfix"> + <div class="right"> + <ul> + <li>Total size: <strong>{{ filesize_human }}</strong></li> + </ul> + </div> + <img class="logo" src="/static/img/logo.png" title="OnionShare"> + <h1>OnionShare</h1> + </header> + + <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.files %} + <tr> + <td> + <img width="30" height="30" title="" alt="" src="/static/img/web_file.png" /> + {{ info.basename }} + </td> + <td>{{ info.size_human }}</td> + <td><a href="/download/{{ info.basename }}">download</td> + </tr> + {% endfor %} + </table> + <script src="/static/js/send.js"></script> + </body> +</html> |