summaryrefslogtreecommitdiff
path: root/share/templates/listing.html
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-10-13 14:35:40 -0400
committerGitHub <noreply@github.com>2019-10-13 14:35:40 -0400
commit896659c6963c14c4e047cff7f3d421977060ed23 (patch)
tree660468dd7478fb001ced211a4a33ae28a1b5f9a4 /share/templates/listing.html
parentbbf6c02da645fcd4fc50db18dd341178ad4fa2e6 (diff)
parent7d24bf9ffcd1e21e087431c21bfc658803a61ab6 (diff)
downloadonionshare-ef18b4b310216abf6f48bfe2a8bb52b70a782d76.tar.gz
onionshare-ef18b4b310216abf6f48bfe2a8bb52b70a782d76.zip
Merge pull request #1048 from micahflee/developv2.2
Version 2.2
Diffstat (limited to 'share/templates/listing.html')
-rw-r--r--share/templates/listing.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/share/templates/listing.html b/share/templates/listing.html
new file mode 100644
index 00000000..2f70dbf0
--- /dev/null
+++ b/share/templates/listing.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>OnionShare</title>
+ <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
+ <link href="{{ static_url_path }}/css/style.css" rel="stylesheet" type="text/css" />
+ </head>
+ <body>
+
+ <header class="clearfix">
+ <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">&#8227;</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 dirs %}
+ <tr>
+ <td>
+ <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
+ <a href="{{ info.basename }}">
+ {{ info.basename }}
+ </a>
+ </td>
+ <td>&mdash;</td>
+ </tr>
+ {% endfor %}
+
+ {% for info in files %}
+ <tr>
+ <td>
+ <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" />
+ <a href="{{ info.basename }}">
+ {{ info.basename }}
+ </a>
+ </td>
+ <td>{{ info.size_human }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </body>
+</html>