aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_view.html
diff options
context:
space:
mode:
authorJohannah Sprinz <neo@neothethird.de>2022-02-08 16:51:20 +0100
committerbnewbold <bnewbold@robocracy.org>2022-02-08 14:39:12 -0800
commit38e6e623cf1827ec9e43aae22d770288b4150858 (patch)
tree1f88ba879015af77a44359ff5615982626ec09b8 /python/fatcat_web/templates/release_view.html
parent41d0d30d788eedf3d5d8ac65a1f432a4604211f7 (diff)
downloadfatcat-38e6e623cf1827ec9e43aae22d770288b4150858.tar.gz
fatcat-38e6e623cf1827ec9e43aae22d770288b4150858.zip
hide abstract format if None
Diffstat (limited to 'python/fatcat_web/templates/release_view.html')
-rw-r--r--python/fatcat_web/templates/release_view.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 01769b1b..4d283cbf 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -121,7 +121,9 @@
{% 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>
+ {%- if release.abstracts[0].mimetype != None %}
+ <br><small><i>In <code>{{ release.abstracts[0].mimetype }}</code> format</i></small>
+ {% endif %}
{% endif %}
{% if entity.state == 'active' %}