diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-12 16:19:50 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-12 17:35:53 -0700 |
commit | 7a106645f663db71020baaec147abbac896613ce (patch) | |
tree | 8e802c639d0d5a0eb9e9714296c8a4b693e1a787 /python | |
parent | 3c82729459b4ba8d99000293a5601236c1fea68d (diff) | |
download | fatcat-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.html | 2 |
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> {{ file.size|filesizeformat }}<br> + {% else %} + <b>Size</b> <i>(unknown)</i><br> {% endif %} {% if file.mimetype != None %} <b>MIME Type</b> <code>{{ file.mimetype }}</code><br> |