From 991f27f75ce0a4381e417a274f08a65c5ddf678b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 Feb 2022 18:15:58 -0800 Subject: container browse: more polish --- .../templates/container_view_browse.html | 59 ++++++++++++++-------- 1 file changed, 39 insertions(+), 20 deletions(-) (limited to 'python/fatcat_web/templates/container_view_browse.html') diff --git a/python/fatcat_web/templates/container_view_browse.html b/python/fatcat_web/templates/container_view_browse.html index 6ea06df8..d16502d0 100644 --- a/python/fatcat_web/templates/container_view_browse.html +++ b/python/fatcat_web/templates/container_view_browse.html @@ -35,18 +35,22 @@ {% if volume.volume %} Vol. {{ volume.volume }} + {% else %} + - {% endif %} {% endif %} {% if issue.issue %} - Issue {{ issue.issue }} + Issue {{ issue.issue }} + {% else %} + - {% endif %} - {{ "{:,}".format(issue.count) }} releases + {{ "{:,}".format(issue.count) }} releases {% endfor %} @@ -57,7 +61,7 @@ {% endmacro %} {% macro browse_releases(found) %} -

+

{% if request.args.volume %} Volume {{ request.args.volume }} {%- if request.args.issue %}, Issue {{ request.args.issue }}{% endif -%} @@ -66,25 +70,40 @@ Year {{ request.args.year }} {% endif %}

-
- {% for release_doc in found.results %} -
-
- {% if request.args.volume %} - {% if release_doc.pages %} - {{ release_doc.pages }} + {% if not found.results %} +

No publications found! + {% else %} + + + + + + + {% for release_doc in found.results %} + + + {% endfor %} + +
{% if request.args.volume %}Page(s){% else %}Date{% endif %}Publication
+ {% if request.args.volume %} + {% if release_doc.pages %} + {{ release_doc.pages }} + {% else %} + - + {% endif %} + {% elif release_doc.release_date %} + {{ release_doc.release_date }} {% else %} - {# blank #} + - {% endif %} - {% elif release_doc.release_date %} - {{ release_doc.release_date }} - {% endif %} - -
- {{ entity_macros.release_search_result_row(release_doc, margin_top=False) }} -
- - {% endfor %} +
+ {{ entity_macros.release_search_result_row(release_doc, margin_top=False) }} +
+ {% if found.count_found > found.count_returned %} +

Showing only the first {{ found.count_returned }} out of {{ found.count_found }} releases + {% endif %} +

Back to full listing + {% endif %} {% endmacro %} {% block entity_main %} -- cgit v1.2.3