diff options
author | Martin Czygan <martin@archive.org> | 2020-10-14 18:56:30 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-10-14 18:56:30 +0000 |
commit | 27ed76790da722f078e51c46b1751df089968e4c (patch) | |
tree | 8b0759ae15b9bd8d6b31085147cac3593df6f323 /python/fatcat_web/templates/entity_macros.html | |
parent | dc7de8b93810cac6c2494f89ccbc49f32c90d6c0 (diff) | |
parent | bde55dc5c7dfd1cb8c2863127c4bc3675a22ddfa (diff) | |
download | fatcat-27ed76790da722f078e51c46b1751df089968e4c.tar.gz fatcat-27ed76790da722f078e51c46b1751df089968e4c.zip |
Merge branch 'bnewbold-web-tweaks-20201013' into 'master'
web coverage tweaks 20201013
See merge request webgroup/fatcat!86
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index d5ecd9b6..e8a763d2 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -270,19 +270,19 @@ yellow {% set frac_none = stats.none/stats.total %} <div class="ui {{ extra_class }} multiple progress" data-percent="0,0,0,0" style="margin-bottom: 0.1em;"> - <div class="green bar" style="border-radius: 0; min-width: 0; width: {{ (frac_bright*100)|round(method='ceil') }}%;" title="bright"> + <div class="green bar" style="border-radius: 0; min-width: 0; width: {{ (frac_bright*100)|round(method='ceil') }}%;" title="bright: {{ "{:,}".format(stats.bright) }} ({{ (frac_bright*100)|round(2,method='ceil') }}%)"> <div class="progress">{# {{ (frac_bright*100)|int }}% #}</div> </div> - <div class="green bar" style="border-radius: 0; min-width: 0; width: {{ (frac_dark*100)|round(method='ceil') }}%; background-color: darkgreen;" title="dark"> + <div class="green bar" style="border-radius: 0; min-width: 0; width: {{ (frac_dark*100)|round(method='ceil') }}%; background-color: darkgreen;" title="dark: {{ "{:,}".format(stats.dark) }} ({{ (frac_dark*100)|round(2,method='ceil') }}%"> <div class="progress">{# {{ (frac_dark*100)|int }}% #}</div> </div> {% if stats.shadows_only %} - {% set frac_shadows_only = stats.shadows_only/stats.total %} - <div class="red bar" style="border-radius: 0; min-width: 0; width: {{ (frac_shadows_only*100)|round(method='ceil') }}%; background-color: darkred;" title="shadows only"> + {% set frac_shadows_only = stats.shadows_only/stats.total %} + <div class="red bar" style="border-radius: 0; min-width: 0; width: {{ (frac_shadows_only*100)|round(method='ceil') }}%; background-color: darkred;" title="shadows only: {{ "{:,}".format(stats.shadows_only) }} ({{ (frac_shadows_only*100)|round(2,method='ceil') }}%)"> <div class="progress">{# {{ (frac_shadows_only*100)|int }}% #}</div> </div> {% endif %} - <div class="red bar" style="border-radius: 0; min-width: 0; width: {{ (frac_none*100)|round(method='ceil') }}%;" title="no preservation"> + <div class="red bar" style="border-radius: 0; min-width: 0; width: {{ (frac_none*100)|round(method='ceil') }}%;" title="no preservation: {{ "{:,}".format(stats.none) }} ({{ (frac_none*100)|round(2,method='ceil') }}%)"> <div class="progress">{# {{ (frac_none*100)|int }}% #}</div> </div> </div> |