aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/fileset_view.html
blob: 7f41e6175d1619b47b80353eeb74d0da684d600e (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
69
70
71
72
73
74
75
76
77
78
79
{% set entity = fileset %}
{% import "entity_macros.html" as entity_macros %}
{% extends "base.html" %}

{% block fullbody %}

<div class="ui stackable mobile reversed grid centered">
<div class="one wide column"></div>
<div class="fifteen wide column">
  <h1 class="ui header">
  <span class="sub header"><code>fileset {{ entity.ident }}</code></span></h1>
</div>
</div>

<div class="ui stackable mobile reversed grid centered">
<div class="one wide column"></div>
<div class="ten wide column" style="font-size: 16px;">

{% if entity.extra %}
  <h3>Extra Metadata (raw JSON)</h3>
  {{ entity_macros.extra_metadata(entity.extra) }}
{% endif %}

<h3>Releases</h3>
{% if entity.releases != [] %}
  {{ entity_macros.release_list(entity.releases) }}
{% else %}
  <p>
  This File Set is not associated with any fatcat release.
{% endif %}
 

<h3>File Manifest ({{ fileset.manifest|count }})</h3>
{% if fileset.manifest %}
  <div class="ui celled list">
    {% for file in fileset.manifest %}
    <div class="item">
      <div class="content"><code>
        <div class="header">
          <i class="file outline icon"></i> {{ file.path }} ({{ file.size|filesizeformat }}{% if file.extra.mimetype %}, {{ file.extra.mimetype }}{% endif %})
        </div>
        <div style="color: #666; margin-left: 1em;"><small>
          {% if file.md5 %}   md5:{{ file.md5 }}<br>{% endif %}
          {% if file.sha1 %}  sha1:{{ file.sha1 }}<br>{% endif %}
          {% if file.sha256 %}sha256:{{ file.sha256 }}<br>{% endif %}
        </small></div>
      </code></div>
    </div>
    {% endfor %}
  </div>
{% else %}
This File Set is empty (contains no files).
{% endif %}


<br>
<h3>Base URLs</h3>
{% if entity.urls %}
  {{ entity_macros.url_list(entity.urls) }}
{% else %}
No known public URL, mirror, or archive for this File Set.
{% endif %}

</div>
<div class="five wide column">

{% if fileset.total_size != None %}
<div class="ui segment attached">
  <p><b>Total Size</b> &nbsp;{{ fileset.total_size|filesizeformat }}
</div>
{% endif %}

{{ entity_macros.fatcat_bits(entity, "fileset", "") }}

</div>
</div>


{% endblock %}