From 149140e2b9f66f389299914c058c648d8bba8120 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 23 Apr 2020 17:22:22 -0700 Subject: web: fix ident=None broken links On web interface views for revisions, we had a bunch of broken links because the ident is "None". This commit fixes these by removing the links. --- python/fatcat_web/templates/release_view.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'python/fatcat_web/templates/release_view.html') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index d7c4e76e..60e4624e 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -3,9 +3,9 @@ {% import "entity_macros.html" as entity_macros %} {% extends "entity_base.html" %} -{# HTML metadata embeddings #} -{% if release and release.status == "active" %} - {% block extra_head %} +{% block extra_head %} + {% if release and release.state == "active" %} + {# HTML metadata embeddings #} @@ -70,8 +70,8 @@ {% endif %} {% endfor %}{% endfor %} - {% endblock %} -{% endif %} + {% endif %} +{% endblock %} {% block main_extra_attr %}itemscope itemtype="http://schema.org/ScholarlyArticle" itemid="#release"{% endblock %} @@ -388,7 +388,7 @@ accessible version.
grouping other versions (eg, pre-print) and variants of this release -{% if release._can_citeproc %} +{% if release.state == "active" and release._can_citeproc %}
Cite This Release -- cgit v1.2.3