summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/file_view.html
blob: 7f516e0190ca86c3f4e491b944b6ac14b643a19c (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
80
81
82
83
{% set entity = file %}
{% 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">
  <div class="sub header"><code>file {{ file.ident }}</code></div></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 %}
  {{ entity_macros.extra_metadata(entity.extra) }}
{% endif %}

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


<h3>URLs</h3>
{% if file.urls != None %}
  {{ entity_macros.url_list(file.urls) }}
{% else %}
No known public URL, mirror, or archive for this file.
{% endif %}

<h3>Checksums</h3>
<table class="ui definition single line fixed compact small unstackable table">
  <tbody>
    {% if file.sha1 != None %}
    <tr><td class="one wide right aligned">SHA-1
        <td class="four wide"><small><code>{{ file.sha1 }}</code></small>
    {% endif %}
    {% if file.sha256 != None %}
    <tr><td class="one wide right aligned">SHA-256
        <td><small><code>{{ file.sha256 }}</code></small>
    {% endif %}
    {% if file.md5!= None %}
    <tr><td class="one wide right aligned">MD5
        <td><small><code>{{ file.md5 }}</code></small>
    {% endif %}
</table>

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

{% if file.urls != None and file.urls != [] %}
<a href="{{ file.urls[0].url }}" class="ui top attached fluid huge green button"><i class="file icon"></i>Download File</a>
{% else %}
<span class="ui top attached fluid huge grey button"><i class="file cross icon"></i>No Download Available</span>
{% endif %}

{% if file.size != None %}
<div class="ui segment attached">
  <p><b>Size</b> &nbsp;{{ file.size|filesizeformat }} (bytes)
</div>
{% endif %}

{% if file.mimetype != None %}
<div class="ui segment attached">
  <p><b>File Type</b> &nbsp;<code>{{ file.mimetype }}</code>
</div>
{% endif %}

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

</div>
</div>


{% endblock %}