From 151832cd805b85bea57cbf888491e081607eb040 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Apr 2021 15:50:44 -0700 Subject: web: improve access button HTML --- python/fatcat_web/templates/file_view.html | 3 +-- 1 file changed, 1 insertion(+), 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 0f5a5fc6..8ed7b084 100644 --- a/python/fatcat_web/templates/file_view.html +++ b/python/fatcat_web/templates/file_view.html @@ -55,9 +55,8 @@ No known archives or mirrors of this file. No Public URL {% endif %} -
-
+
{% if file.size != None %} Size  {{ file.size|filesizeformat }}
{% endif %} -- cgit v1.2.3 From 7a106645f663db71020baaec147abbac896613ce Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Apr 2021 16:19:50 -0700 Subject: web: show file size not known, when it isn't This is mostly to prevent showing an empty metadata box --- python/fatcat_web/templates/file_view.html | 2 ++ 1 file changed, 2 insertions(+) (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 8ed7b084..3afd0099 100644 --- a/python/fatcat_web/templates/file_view.html +++ b/python/fatcat_web/templates/file_view.html @@ -59,6 +59,8 @@ No known archives or mirrors of this file.
{% if file.size != None %} Size  {{ file.size|filesizeformat }}
+ {% else %} + Size  (unknown)
{% endif %} {% if file.mimetype != None %} MIME Type  {{ file.mimetype }}
-- cgit v1.2.3