summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 20:54:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 20:54:19 -0700
commit45a85d3ab211808a545cb9e39ca07a5501d3402f (patch)
treeb5b4fa198eaaf88903c78b2afb1f0be146513c29
parent3269e0eb729b2a989fcc97e5d13fb84af0ffc8f5 (diff)
downloadfatcat-45a85d3ab211808a545cb9e39ca07a5501d3402f.tar.gz
fatcat-45a85d3ab211808a545cb9e39ca07a5501d3402f.zip
template bugfixes
-rw-r--r--python/fatcat/templates/release_view.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index 8a0c1e76..98d54976 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -165,6 +165,7 @@ This release citing other releases.
</div><div class="ui segment attached">
{% endif %}
+{% if container != None %}
<b>Container Metadata</b><br>
{% if container.extra.is_oa == True %}
<i class="icon unlock orange"></i>Open Access Publication<br>
@@ -194,13 +195,13 @@ This release citing other releases.
<i class="icon hashtag"></i>ISSN-L: &nbsp;<code>{{ container.issnl }}</code><br>
{% endif %}
</div><div class="ui segment attached">
-
+{% endif %}
<b>Lookup Links</b>
{% if container != None and container.issnl != None %}
<br><a href="http://www.sherpa.ac.uk/romeo/issn/{{ container.issnl }}/">SHERPA/RoMEO</a> (journal policies)
{% endif %}
-{% if container.doi != None %}
+{% if container != None and container.doi != None %}
<br><a href="https://oadoi.org/{{ release.doi }}">oaDOI/unpaywall</a>
{% endif %}
{% if release.isbn13 != None %}