aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-19 19:32:08 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-03-19 19:32:08 -0700
commit4c20cea1553ba369e935d56bea2bbbb1a8485954 (patch)
tree478a2c1be1c1280eadac23afec7ca162671e58eb /python/fatcat_web/templates
parent1a77bd497df4285f6c1a50f345b7b88cd4143e6b (diff)
downloadfatcat-4c20cea1553ba369e935d56bea2bbbb1a8485954.tar.gz
fatcat-4c20cea1553ba369e935d56bea2bbbb1a8485954.zip
if no fulltext file, try webcapture
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/release_view.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index ede99a79..9c7bcbf0 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -312,6 +312,8 @@
{% if entity.files != [] and entity.files[0].urls != [] %}
<a href="{{ entity.files[0].urls[0].url }}" class="ui top attached fluid huge green button"><i class="file pdf outline icon"></i>Download Full Text</a>
+{% elif 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].original_url }}" class="ui top attached fluid huge green button"><i class="file archive outline icon"></i>View Web Archive</a>
{% else %}
<span class="ui top attached fluid huge grey button"><i class="file cross icon"></i>No Full Text Available</span>
{% endif %}