From 2f233a3b8c00385d4b215361a0fa09f93a05f8d9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Jun 2020 14:05:56 -0700 Subject: use ES 'best_url' in file download pages Similar to recent change for release download pages. --- python/fatcat_web/templates/file_view.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web/templates/file_view.html') 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.
-{% if file.urls != None and file.urls != [] %} -Download File +{% if file._es and file._es.best_url %} +Download File {% else %} No Download Available {% endif %} -- cgit v1.2.3