From eed145e1aff954a2d56260eb74e14f38057abf17 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 29 Nov 2019 15:15:25 +0000 Subject: [PATCH] people: Show signed up users in percentage Signed-off-by: Michael Tremer --- src/templates/people/stats.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/templates/people/stats.html b/src/templates/people/stats.html index 2cebfd1c..93c026a5 100644 --- a/src/templates/people/stats.html +++ b/src/templates/people/stats.html @@ -5,11 +5,13 @@ {% block content %}

{{ _("Statistics") }}

+ {% set total_accounts = len(backend.accounts) %} +
-

{{ len(backend.accounts) }}

+

{{ total_accounts }}

{{ _("Total Accounts") }}

@@ -45,7 +47,9 @@ {{ country.apolitical_name }} - {{ countries[country] }} + + {{ "%.1f%%" % (countries[country] * 100 / total_accounts) }} + {% end %} -- 2.47.3