From 180bb7366587bc4150108e4e0274806ce285d6a6 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 5 Sep 2019 17:12:16 -0700 Subject: small fixes to release view - full width container metadata table accordion - fix "Published in by blah" cases --- python/fatcat_web/templates/release_view.html | 38 +++++++++++++++++---------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 526793e3..11b67148 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -89,28 +89,38 @@
{% if release.release_stage == 'published' %} - Published in {{ release.container.name }} + Published + {% if release.container.ident %} + in {{ release.container.name }} + {% elif release.extra and release.extra.container_name %} + in {{ release.extra.container_name }} + {% endif %} {% else %} - Released as a {{ release.release_type }} - {% if release.container %} in {{ release.container.name }} {% endif %} + Released + {% if release.release_type %} + as a {{ release.release_type }} + {% endif %} + {% if release.container %} + in {{ release.container.name }} + {% endif %} {% endif %} {% if release.publisher %} by {{ release.publisher }} {% endif %}
- +
{% if release.number != None %} - - + - + - + @@ -131,16 +141,16 @@ - + - + -- cgit v1.2.3
Number{{ release.number }} +
Number{{ release.number }} {% endif %} {% if release.version != None %} -
Version{{ release.version }} +
Version{{ release.version }} {% endif %} {% if release.container != None and release.container.issnl != None %} -
ISSN-L{{ release.container.issnl }} +
ISSN-L{{ release.container.issnl }} {% endif %} {% if release.volume != None %}
Release Date {{ release.release_date }} {% elif release.release_year != None %} -
Release Year{{ release.release_year }} +
Release Year{{ release.release_year }} {% endif %} {% if release.container != None and release.container.container_type != None %}
Container Type {{ release.container.container_type }} {% endif %} {% if release.publisher != None %} -
Publisher{{ release.publisher }} +
Publisher{{ release.publisher }} {% endif %} {% if release.language != None %}
Primary Language