summaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/resources/templates/listing.html
blob: 8e0dedf703b42744b4025475ddfdbfee02e082e6 (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
<!DOCTYPE html>
<html>

<head>
  <title>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <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="d-flex">
    <div class="logo-container">
      <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
      <h1>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</h1>
    </div>
  </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 %}

  <div class="file-list" id="file-list">
    <div class="d-flex">
      <div id="filename-header" class="heading">Filename</div>
      <div id="size-header" class="heading">Size</div>
    </div>

    {% for info in dirs %}
    <div class="d-flex">
      <div>
        <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
        <a href="{{ info.link }}">
          <span>{{ info.basename }}</span>
        </a>
      </div>
      <div>&mdash;</div>
    </div>
    {% endfor %}

    {% for info in files %}
    <div class="d-flex">
      <div>
        <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" />
        <a href="{{ info.link }}">
          <span>{{ info.basename }}</span>
        </a>
      </div>
      <div>{{ info.size_human }}</div>
    </div>
    {% endfor %}
  </div>
</body>

</html>