summaryrefslogtreecommitdiff
path: root/share/templates/send.html
blob: 941c4130e977d698c614eb4652da8f1f76a12c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>

<head>
  <title>OnionShare</title>
  <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>

<body>

  <header class="clearfix">
    <div class="right">
      <ul>
        <li>Total size: <strong>{{ filesize_human }}</strong> {% if is_zipped %} (compressed){% endif %}</li>
        <li><a class="button" href='/download'>Download Files</a></li>
      </ul>
    </div>
    <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" />
        {% if download_individual_files %}
        <a href="{{ info.basename }}">
          {{ info.basename }}
        </a>
        {% else %}
        {{ info.basename }}
        {% endif %}
      </td>
      <td>{{ info.size_human }}</td>
    </tr>
    {% endfor %}
  </table>
  <script async src="{{ static_url_path }}/js/send.js" charset="utf-8"></script>
</body>

</html>