From f75190ab7979c411bc8d90fab13c931933f4595c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 4 Sep 2019 13:24:44 -0700 Subject: finish container coverage page Also re-worked container view sidebar a bit more. --- .../templates/container_view_coverage.html | 61 ++++++++++++++++++++-- 1 file changed, 58 insertions(+), 3 deletions(-) (limited to 'python/fatcat_web/templates/container_view_coverage.html') diff --git a/python/fatcat_web/templates/container_view_coverage.html b/python/fatcat_web/templates/container_view_coverage.html index eb9dba8a..db435181 100644 --- a/python/fatcat_web/templates/container_view_coverage.html +++ b/python/fatcat_web/templates/container_view_coverage.html @@ -6,10 +6,65 @@ {% block entity_main %} -

Preservation Coverage By Year

+
+
+
+
+
{{ "{:,}".format(container._stats.total) }}
+
Known Releases
+
+ {% if container._stats.total >= 1 %} - -
Download as JSON + {% set frac_kbart = container._stats.in_kbart/container._stats.total %} + {% set frac_preserved = container._stats.is_preserved/container._stats.total %} + {% set frac_web = container._stats.in_web/container._stats.total %} + +
+
+
{{ (frac_web*100)|int }}%
+
+
+ {{ "{:,}".format(container._stats.in_web) }} preserved and available (bright) +
+
+ +
+
+
+
{{ (frac_preserved*100)|int }}%
+
+
+ {{ "{:,}".format(container._stats.is_preserved) }} preserved at all (bright or dark) +
+
+ +
+
+
+
{{ (frac_kbart*100)|int }}%
+
+
+ {{ "{:,}".format(container._stats.in_kbart ) }} preserved by Keeper (dark) +
+
+ + {% endif %} +
+
+
+ +{% if container._stats.total >= 1 %} +
+

Perpetual Access Coverage by Year

+ +
+ +
+ +
+ Download as JSON +
+{% endif %} {% endblock %} -- cgit v1.2.3