From 1691ff26ff3a33d619fbc1bd2983a9b07dbdbabc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 2 Mar 2019 17:25:30 -0800 Subject: add basic fileset and webcapture views --- python/fatcat_web/templates/webcapture_view.html | 85 ++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 python/fatcat_web/templates/webcapture_view.html (limited to 'python/fatcat_web/templates/webcapture_view.html') diff --git a/python/fatcat_web/templates/webcapture_view.html b/python/fatcat_web/templates/webcapture_view.html new file mode 100644 index 00000000..08489fd3 --- /dev/null +++ b/python/fatcat_web/templates/webcapture_view.html @@ -0,0 +1,85 @@ +{% set entity = webcapture %} +{% import "entity_macros.html" as entity_macros %} +{% extends "base.html" %} + +{% block fullbody %} + +
+
+
+

+ {% if webcapture.original_url %} + {{ webcapture.original_url }} + {% endif %} +
webcapture {{ webcapture.ident }}

+
+
+ +
+
+
+ + +{% if entity.extra %} + {{ entity_macros.extra_metadata(entity.extra) }} +{% endif %} + +

Releases

+{% if entity.releases != [] %} + {{ entity_macros.release_list(entity.releases) }} +{% else %} +

+ This Web Capture is not associated with any fatcat release. +{% endif %} + + +

CDX Rows ({{ webcapture.cdx|count }})

+{% if webcapture.cdx %} +
+ {% for row in webcapture.cdx %} +
+
+ +
+ {{ row.timestamp }} + {% if row.mimetype %}| {{ row.mimetype }}{% endif %} +
+ + {% if row.sha1 %}sha1:{{ row.sha1 }}
{% endif %} + {% if row.sha256 %}sha256:{{ row.sha256 }}
{% endif %} +
+
+
+
+ {% endfor %} +
+{% else %} +This File Set is empty (contains no files). +{% endif %} + +
+

Archive URLs

+{% if webcapture.archive_urls != None %} + {{ entity_macros.url_list(webcapture.archive_urls) }} +{% else %} +No known public archive for this webcapture. +{% endif %} + +
+
+ +{% if webcapture.timestamp != None %} +
+

Capture Time  {{ webcapture.timestamp }} +

+{% endif %} + +{{ entity_macros.fatcat_bits(entity, "webcapture", "") }} + +
+
+ + +{% endblock %} -- cgit v1.2.3