summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_view.html
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r--python/fatcat_web/templates/container_view.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index 182589c7..1998bc68 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -12,6 +12,11 @@
<div style="text-overflow: ellipsis; overflow: hidden; width: 100%;">
<a href="{{ container.extra['urls'][0] }}"><code>{{ container.extra['urls'][0] }}</code></a>
</div>
+{% elif (container.extra != None) and (container.extra['webarchive_urls'] != None) and (container.extra['webarchive_urls']|length > 0) %}
+{# fallback to a webarchive URL if no valid/live homepage URL #}
+ <div style="text-overflow: ellipsis; overflow: hidden; width: 100%;">
+ <a href="{{ container.extra['webarchive_urls'][0] }}"><code>{{ container.extra['webarchive_urls'][0] }}</code></a>
+ </div>
{% endif %}
<p>
{% if container.publisher != None %}