diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-09 17:34:03 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-09 17:34:03 -0800 |
commit | d4c7fd88f359f60ccc5ac82c1c79045a12f4c582 (patch) | |
tree | c1a3c3e9653c71a572b91004f2fcd0ca5aee6e25 /python/fatcat_web | |
parent | d9cd88ee7800d17464323be559e684b9168a296e (diff) | |
parent | ffa84007cbbd0740fbe94007874f29cc9257cb48 (diff) | |
download | fatcat-d4c7fd88f359f60ccc5ac82c1c79045a12f4c582.tar.gz fatcat-d4c7fd88f359f60ccc5ac82c1c79045a12f4c582.zip |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'python/fatcat_web')
-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' %} |