aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-22 17:27:03 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-22 17:27:03 -0800
commite4d2801acec50b763c104fc87df69f943f54fa7c (patch)
tree98043a7297326e16b40e704740ffff2e3aae4085 /python/fatcat_web/templates/container_view.html
parenteebce42d74f8c0e5176bf0a0cfa8036f88a3da34 (diff)
downloadfatcat-e4d2801acec50b763c104fc87df69f943f54fa7c.tar.gz
fatcat-e4d2801acec50b763c104fc87df69f943f54fa7c.zip
bunch of entity view updates
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r--python/fatcat_web/templates/container_view.html20
1 files changed, 11 insertions, 9 deletions
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 @@
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
{% for (key, value) in container.extra.items() %}
- <tr><td class="three wide"><code>{{ key }}</code></td>
+ <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
<td class="seven wide"><code>{{ value }}</code>
{% endfor %}
</tbody>
@@ -83,14 +83,16 @@ Raw Object:
{% if container_stats %}
<b>Release Counts</b><br>
-{{ container_stats.total }} total
-<br>{{ container_stats.is_preserved }}
-(<b>{{ "%.1f"|format(container_stats.is_preserved/container_stats.total*100) }}%</b>)
-preserved or archived
-<br>{{ container_stats.in_web }}
-(<b>{{ "%.1f"|format(container_stats.in_web/container_stats.total*100) }}%</b>)
-fulltext available to read
- </div><div class="ui segment attached">
+ {{ "{:,}".format(container_stats.total) }} total
+ {% if container_stats.total >= 1 %}
+ <br>{{ "{:,}".format(container_stats.is_preserved) }}
+ (<b>{{ "{:.1f}".format(container_stats.is_preserved/container_stats.total*100) }}%</b>)
+ preserved or archived
+ <br>{{ "{:,}".format(container_stats.in_web) }}
+ (<b>{{ "{:.1f}".format(container_stats.in_web/container_stats.total*100) }}%</b>)
+ fulltext available to read
+ {% endif %}
+</div><div class="ui segment attached">
{% endif %}
{% if (container.es and container.es != None) %}