From 4032dc1ff11dcbbd4d9453749872b28b7188d45d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Oct 2020 17:56:08 -0700 Subject: coverage: show counts and fraction in tooltip of coverage bars --- python/fatcat_web/templates/entity_macros.html | 10 +++++----- 1 file 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 %}
-
+
{# {{ (frac_bright*100)|int }}% #}
-
+
{# {{ (frac_dark*100)|int }}% #}
{% if stats.shadows_only %} - {% set frac_shadows_only = stats.shadows_only/stats.total %} -
+ {% set frac_shadows_only = stats.shadows_only/stats.total %} +
{# {{ (frac_shadows_only*100)|int }}% #}
{% endif %} -
+
{# {{ (frac_none*100)|int }}% #}
-- cgit v1.2.3