aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-18 18:57:12 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-18 18:57:12 -0700
commit43dfad6579118a0a4f05b0eee4004bccd2886c75 (patch)
treef9708840bb25f8f6eab9e49b98d2693cab5e75e8 /python
parent2d2c0668ebb5e6277766d0b14f1a5ac306fc8062 (diff)
downloadfatcat-43dfad6579118a0a4f05b0eee4004bccd2886c75.tar.gz
fatcat-43dfad6579118a0a4f05b0eee4004bccd2886c75.zip
fix display of files when file size not known
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/templates/release_view.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index 31502f92..22a45e15 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -83,8 +83,8 @@ Believed to represent this release...
<tbody>
{% for file in files %}
<tr><td><small><code><a href="/file/{{ file.ident }}">{{ file.sha1}}</a></code></small>
- <td>{{ file.size }}
- <td>{{ file.mimetype }}
+ <td>{% if file.size != None %}{{ file.size }}{% endif %}
+ <td>{% if file.mimetype != None %}{{ file.mimetype }}{% endif %}
<td><a href="{{ file.url }}">{{ file.url.split('/')[2] }}</a>
<br><a href="https://web.archive.org/web/1/{{ file.url }}">web.archive.org</a>
{% endfor %}