diff options
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r-- | python/fatcat_web/templates/release_view.html | 8 |
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' %} |