aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-09 17:34:03 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-02-09 17:34:03 -0800
commitd4c7fd88f359f60ccc5ac82c1c79045a12f4c582 (patch)
treec1a3c3e9653c71a572b91004f2fcd0ca5aee6e25
parentd9cd88ee7800d17464323be559e684b9168a296e (diff)
parentffa84007cbbd0740fbe94007874f29cc9257cb48 (diff)
downloadfatcat-d4c7fd88f359f60ccc5ac82c1c79045a12f4c582.tar.gz
fatcat-d4c7fd88f359f60ccc5ac82c1c79045a12f4c582.zip
Merge remote-tracking branch 'github/master'
-rw-r--r--python/fatcat_web/templates/release_view.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 99fe3946..f2e3f670 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -121,7 +121,13 @@
{% if release.abstracts != [] %}
<h3>Abstract</h3>
<p><span itemprop="description">{{ release.abstracts[0].content }}</span>
- <br><small><i>In <code>{{ release.abstracts[0].mimetype }}</code> format</i></small>
+ <br><small><i>
+ {%- if release.abstracts[0].mimetype != None %}
+ In <code>{{ release.abstracts[0].mimetype }}</code> format
+ {% else %}
+ Unknown format
+ {% endif %}
+ </i></small>
{% endif %}
{% if entity.state == 'active' %}