aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/file_view.html
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-06-05 11:23:29 +0000
committerMartin Czygan <martin@archive.org>2020-06-05 11:23:29 +0000
commit9dca5a8348f2ab34a013b25f3dae07c1f8db2c19 (patch)
tree41b1f6094714f8dd1b1b8e54028e1a32202205f4 /python/fatcat_web/templates/file_view.html
parent394433ff5e0aba301f2f26e03095079e0ca974ca (diff)
parent2f233a3b8c00385d4b215361a0fa09f93a05f8d9 (diff)
downloadfatcat-9dca5a8348f2ab34a013b25f3dae07c1f8db2c19.tar.gz
fatcat-9dca5a8348f2ab34a013b25f3dae07c1f8db2c19.zip
Merge branch 'bnewbold-better-button-links' into 'master'
better download button links See merge request webgroup/fatcat!57
Diffstat (limited to 'python/fatcat_web/templates/file_view.html')
-rw-r--r--python/fatcat_web/templates/file_view.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html
index d60ea49d..02f47a91 100644
--- a/python/fatcat_web/templates/file_view.html
+++ b/python/fatcat_web/templates/file_view.html
@@ -44,8 +44,8 @@ No known public URL, mirror, or archive for this file.
</div>
<div class="column" style="flex: 0 0 24em;">
-{% if file.urls != None and file.urls != [] %}
-<a href="{{ file.urls[0].url }}" class="ui top attached fluid huge green button"><i class="file icon"></i>Download File</a>
+{% if file._es and file._es.best_url %}
+<a href="{{ file._es.best_url }}" class="ui top attached fluid huge green button"><i class="file icon"></i>Download File</a>
{% else %}
<span class="ui top attached fluid huge grey button"><i class="file cross icon"></i>No Download Available</span>
{% endif %}