From 3c18f8c73efc825a68d734c03907a3747f148b82 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 9 Dec 2019 15:46:21 -0800 Subject: fix delete release history view This was causing 5xx errors in production and qa. Eg, at: https://qa.fatcat.wiki/release/aaaaaaaaaaaaarceaaaaaaaaai/history --- python/fatcat_web/templates/entity_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_web') 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 %} -- cgit v1.2.3