aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorJohannah Sprinz <neo@neothethird.de>2022-02-08 23:21:23 +0100
committerbnewbold <bnewbold@robocracy.org>2022-02-08 14:39:12 -0800
commitffa84007cbbd0740fbe94007874f29cc9257cb48 (patch)
tree7c9e3b10a29721b98ee8ab7975cd7c8e74df8f55 /python/fatcat_web/templates
parent38e6e623cf1827ec9e43aae22d770288b4150858 (diff)
downloadfatcat-ffa84007cbbd0740fbe94007874f29cc9257cb48.tar.gz
fatcat-ffa84007cbbd0740fbe94007874f29cc9257cb48.zip
Display unknown abstract format
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/release_view.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 4d283cbf..55c45222 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -121,9 +121,13 @@
{% if release.abstracts != [] %}
<h3>Abstract</h3>
<p><span itemprop="description">{{ release.abstracts[0].content }}</span>
- {%- if release.abstracts[0].mimetype != None %}
- <br><small><i>In <code>{{ release.abstracts[0].mimetype }}</code> format</i></small>
- {% endif %}
+ <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' %}