aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-04-08 16:51:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-04-08 16:51:09 -0700
commit5c7443e38281f9064c3961f675a228024947acbf (patch)
tree97f9720154364b13eeeb04c32a70f059aebb625a /python/fatcat_web/templates
parent156d04dac507e089a8b2a321094bb205bc67e1c1 (diff)
downloadfatcat-5c7443e38281f9064c3961f675a228024947acbf.tar.gz
fatcat-5c7443e38281f9064c3961f675a228024947acbf.zip
web: another release/webcapture jinja2 check
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/release_view.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 5e64d7e0..7178f9f3 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -214,7 +214,7 @@ accessible version.
<a href="{{ entity._es.ia_pdf_url }}" class="ui fluid huge black button" style="text-decoration: underline;">
<i class="file pdf outline icon"></i>Read Archived PDF
</a>
-{% elif entity.state == 'active' and entity.webcaptures != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %}
+{% elif entity.state == 'active' and entity.webcaptures and entity.webcaptures != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %}
<a href="{{ entity.webcaptures[0].archive_urls[0].url }}{{ entity.webcaptures[0]._wayback_suffix }}" class="ui fluid huge black button" style="text-decoration: underline;">
<i class="university icon"></i>Visit Web Archive
</a>