blob: e8d81ed76a0b671705c78f4b0543c7ff04dc8982 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
{% 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">
{% if file.extra != None %}
<p><b>Additional Metadata (raw JSON):</b>
<pre>{{ file.extra }}</pre>
{% endif %}
<h3>Releases</h3>
{% if file.releases != None %}
<p>Releases associated with this file:
<ul>
{% for release_id in file.releases %}
<li><a href="/release/{{ release_id }}"><code>{{ release_id }}</code></a>
{% endfor %}
</ul>
{% else %}
This file is not associated with any fatcat release.
{% endif %}
<h3>URLs</h3>
{% if file.url != None %}
<p>Known locations of this file:
<ul>
<li><a href="{{ file.url }}">{{ file.url.split('/')[2] }}</a>
(<a href="https://web.archive.org/web/2/{{ file.url }}">Wayback mirror</a>)
</ul>
{% else %}
No known public URL, mirror, or archive for this file.
{% endif %}
<h3>Checksums</h3>
<table class="ui table">
<thead>
<tr><th>Algorithm
<th>Value
<tbody>
{% if file.sha1 != None %}
<tr><td>SHA-1
<td><code>{{ file.sha1 }}
{% endif %}
{% if file.sha1 != None %}
<tr><td>SHA-256
<td><code>{{ file.sha256 }}
{% endif %}
{% if file.md5!= None %}
<tr><td>MD5
<td><code>{{ file.md5 }}
{% endif %}
</table>
<!--
Raw Object:
{{ file|safe }}
-->
</div>
<div class="five wide column">
{% if file.url != None %}
<a href="https://web.archive.org/web/2/{{ file.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 %}
<div class="ui segment attached">
{% if file.size != None %}
<p><b>Size</b> {{ file.size }} (bytes)
</div><div class="ui segment attached">
{% endif %}
{% if file.mimetype != None %}
<p><b>File Type</b> <code>{{ file.mimetype }}</code>
</div><div class="ui segment attached">
{% endif %}
<b>Fatcat Bits</b>
<p>Revision #{{ file.revision }}. State is "{{ file.state }}"
<br><a href="https://api.qa.fatcat.wiki/v0/file/{{ file.ident }}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
<a href="/file/{{ file.ident }}/edit" class="ui blue button">Edit Metadata</a>
<a href="/file/{{ file.ident }}/history" class="ui button">View History</a>
</div>
</div>
</div>
{% endblock %}
|