summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-09 15:46:21 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-09 15:50:38 -0800
commit3c18f8c73efc825a68d734c03907a3747f148b82 (patch)
treec9538807099c02d17fa894228ea8e189b84d0e23 /python/fatcat_web
parentf02aaf796fbe1ac6d9d03044b10356eba4b8a544 (diff)
downloadfatcat-3c18f8c73efc825a68d734c03907a3747f148b82.tar.gz
fatcat-3c18f8c73efc825a68d734c03907a3747f148b82.zip
fix delete release history view
This was causing 5xx errors in production and qa. Eg, at: https://qa.fatcat.wiki/release/aaaaaaaaaaaaarceaaaaaaaaai/history
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/templates/entity_base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/entity_base.html b/python/fatcat_web/templates/entity_base.html
index 48f51ec6..437bc071 100644
--- a/python/fatcat_web/templates/entity_base.html
+++ b/python/fatcat_web/templates/entity_base.html
@@ -80,7 +80,7 @@
{{ entity_tab("overview", "Overview", "") }}
{% if entity_type == "container" and entity.state == 'active' and not editgroup %}
{{ entity_tab("coverage", "Coverage", "/coverage") }}
- {% elif entity_type == "release" %}
+ {% elif entity_type == "release" and entity.state != 'deleted' %}
{{ entity_tab("contribs", "Authors", "/contribs", entity._authors|count ) }}
{{ entity_tab("references", "References", "/references", entity.refs|count) }}
{% endif %}