aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-04-26 15:53:55 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-04-26 15:53:55 -0700
commitebd92125128838e0933f538b03a8098a2c7794ba (patch)
tree67a4a4bda0652c94d1a823fe4fb8a4ad026cd4b3 /python/fatcat_web/templates/release_view.html
parent80baeecf60ac53eb21bfdc0de3f77323f7b0e031 (diff)
downloadfatcat-ebd92125128838e0933f538b03a8098a2c7794ba.tar.gz
fatcat-ebd92125128838e0933f538b03a8098a2c7794ba.zip
html: yet another webcapture template check bugfix
Diffstat (limited to 'python/fatcat_web/templates/release_view.html')
-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 7178f9f3..53ac3703 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 != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %}
+{% elif entity.state == 'active' and entity.webcaptures != None 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>