From b03bfc8f3fd84141738f775b273a99850d78e1ff Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Nov 2018 23:18:56 -0800 Subject: refactor python modules --- python/fatcat_web/templates/file_view.html | 108 +++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 python/fatcat_web/templates/file_view.html (limited to 'python/fatcat_web/templates/file_view.html') diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html new file mode 100644 index 00000000..74977668 --- /dev/null +++ b/python/fatcat_web/templates/file_view.html @@ -0,0 +1,108 @@ +{% extends "base.html" %} +{% block fullbody %} + +
+
+
+

+
file {{ file.ident }}

+
+
+ +
+
+
+ +{% if file.extra != None %} +

Extra Metadata (raw JSON)

+{% for (key, value) in file.extra.items() %} +{{ key }}: {{ value }}
+{% endfor %} +{% endif %} + +

Releases

+{% if file.releases != None %} +

Releases associated with this file: +

+{% else %} +This file is not associated with any fatcat release. +{% endif %} + +

URLs

+{% if file.url != None %} +

Known locations of this file: +

+{% else %} +No known public URL, mirror, or archive for this file. +{% endif %} + +

Checksums

+ + + + {% if file.sha1 != None %} +
Algorithm + Value +
SHA-1 + {{ file.sha1 }} + {% endif %} + {% if file.sha256 != None %} +
SHA-256 + {{ file.sha256 }} + {% endif %} + {% if file.md5!= None %} +
MD5 + {{ file.md5 }} + {% endif %} +
+ + + +
+
+ +{% if file.urls != None and file.urls != [] %} +Download File +{% else %} +No Download Available +{% endif %} + +
+ +{% if file.size != None %} +

Size  {{ file.size }} (bytes) +

+{% endif %} + +{% if file.mimetype != None %} +

File Type  {{ file.mimetype }} +

+{% endif %} + +Fatcat Bits +

State is "{{ file.state }}". Revision: +
{{ file.revision }} +
As JSON object via API + +

+ + +
+
+ + +{% endblock %} -- cgit v1.2.3