From 7a36970dfa7b37ebd9bf28e9fdd3c0254ae0be8a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 24 Aug 2019 13:52:42 +0200 Subject: improve wayback view page --- python/fatcat_web/templates/webcapture_view.html | 25 ++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (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 index 16e5c03e..f2f689f3 100644 --- a/python/fatcat_web/templates/webcapture_view.html +++ b/python/fatcat_web/templates/webcapture_view.html @@ -19,7 +19,24 @@

Archive URLs

{% if webcapture.archive_urls != None %} - {{ entity_macros.url_list(webcapture.archive_urls, webcapture._wayback_suffix) }} + + + {% for url in webcapture.archive_urls %} + +
{{ url.rel }} + + {% if url.rel == "wayback" %} + + {{ url.url }}{{ webcapture._wayback_suffix }} + + {% else %} + + {{ url.url }} + + {% endif %} + + {% endfor %} +
{% else %} No known public archive for this webcapture. {% endif %} @@ -32,7 +49,7 @@ No known public archive for this webcapture.
{{ row.timestamp.strftime("%Y-%m-%d %H:%M:%S") }} @@ -55,6 +72,10 @@ This web capture is empty (contains no resources).
+{% if webcapture.state == 'active' and webcapture.archive_urls != [] and webcapture.archive_urls[0].rel == "wayback" %} +View Web Archive +{% endif %} + {% if webcapture.timestamp != None %}

Capture Time  {{ webcapture.timestamp.strftime("%Y-%m-%d %H:%M:%S") }} -- cgit v1.2.3