From eebce42d74f8c0e5176bf0a0cfa8036f88a3da34 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 Feb 2019 14:28:27 -0800 Subject: rework container page (search, stats) --- python/fatcat_web/templates/container_view.html | 39 ++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index ffe01185..1d237023 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -13,17 +13,37 @@
-

Publisher: -{% if container.publisher != None %}{{ container.publisher }}{% else %}Unknown{% endif %} +

{% if (container.extra != None) and (container.extra['urls'] != None) and (container.extra['urls']|length > 0) %} -
Homepage:  {{ container.extra['urls'][0] }} + {{ container.extra['urls'][0] }}
+{% endif %} +{% if container.publisher != None %} + Published by {{ container.publisher }} +{% endif %} + +{% if container.issnl %} +

Search Releases from this Container

+
+
+
+ + + +
+
+
{% endif %} {% if container.extra %}

Extra Metadata (raw JSON)

+ + {% for (key, value) in container.extra.items() %} -{{ key }}: {{ value }}
+ + +
{{ key }}{{ value }} {% endfor %} +
{% endif %}