aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-04-12 16:19:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-04-12 17:35:53 -0700
commit7a106645f663db71020baaec147abbac896613ce (patch)
tree8e802c639d0d5a0eb9e9714296c8a4b693e1a787 /python
parent3c82729459b4ba8d99000293a5601236c1fea68d (diff)
downloadfatcat-7a106645f663db71020baaec147abbac896613ce.tar.gz
fatcat-7a106645f663db71020baaec147abbac896613ce.zip
web: show file size not known, when it isn't
This is mostly to prevent showing an empty metadata box
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/file_view.html2
1 files changed, 2 insertions, 0 deletions
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.
<div class="ui top attached segment">
{% if file.size != None %}
<b>Size</b> &nbsp;{{ file.size|filesizeformat }}<br>
+ {% else %}
+ <b>Size</b> &nbsp;<i>(unknown)</i><br>
{% endif %}
{% if file.mimetype != None %}
<b>MIME Type</b> &nbsp;<code>{{ file.mimetype }}</code><br>