aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-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' %}