From e4d2801acec50b763c104fc87df69f943f54fa7c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 Feb 2019 17:27:03 -0800 Subject: bunch of entity view updates --- python/fatcat_web/templates/container_view.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'python/fatcat_web/templates/container_view.html') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 1d237023..c19d8c1c 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -39,7 +39,7 @@ {% for (key, value) in container.extra.items() %} - + @@ -83,14 +83,16 @@ Raw Object: {% if container_stats %} Release Counts
-{{ container_stats.total }} total -
{{ container_stats.is_preserved }} -({{ "%.1f"|format(container_stats.is_preserved/container_stats.total*100) }}%) -preserved or archived -
{{ container_stats.in_web }} -({{ "%.1f"|format(container_stats.in_web/container_stats.total*100) }}%) -fulltext available to read -
+ {{ "{:,}".format(container_stats.total) }} total + {% if container_stats.total >= 1 %} +
{{ "{:,}".format(container_stats.is_preserved) }} + ({{ "{:.1f}".format(container_stats.is_preserved/container_stats.total*100) }}%) + preserved or archived +
{{ "{:,}".format(container_stats.in_web) }} + ({{ "{:.1f}".format(container_stats.in_web/container_stats.total*100) }}%) + fulltext available to read + {% endif %} +
{% endif %} {% if (container.es and container.es != None) %} -- cgit v1.2.3
{{ key }}
{{ key }} {{ value }} {% endfor %}