From 0aaa2a839d7a14716ee1a84b730203a7953dc5e0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Apr 2022 14:19:17 -0700 Subject: web: improve no-file release page behavior --- python/fatcat_web/templates/release_view.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index f2e3f670..e21896ca 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -131,8 +131,9 @@ {% endif %} {% if entity.state == 'active' %} + +{% if entity.files != [] and entity.files != None %}

Archived Files and Locations

-{% if entity.files != [] %} {% for file in entity.files %} @@ -151,15 +152,9 @@ {% endfor %}
-{% else %} -

There are no accessible files associated with this release. You could check -other releases for this work for an -accessible version. -{% endif %} {% endif %} -{% if entity.state == 'active' %} -{% if entity.filesets != [] %} +{% if entity.filesets != [] and entity.filesets != None %}

File Sets

@@ -181,10 +176,8 @@ accessible version.
{% endif %} -{% endif %} -{% if entity.state == 'active' %} -{% if entity.webcaptures != [] %} +{% if entity.webcaptures != [] and entity.webcaptures != None %}

Web Captures

@@ -203,9 +196,17 @@ accessible version.
{% endif %} + +{% if not (entity.files or entity.filesets or entity.webcaptures) %} +

Archived Content

+

There are no accessible files associated with this release. You could check +other releases for this work for an +accessible version. +{% endif %} + {% endif %} - +

-- cgit v1.2.3