From: Michael Tremer Date: Fri, 29 Nov 2019 15:15:25 +0000 (+0000) Subject: people: Show signed up users in percentage X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eed145e1aff954a2d56260eb74e14f38057abf17;p=ipfire.org.git people: Show signed up users in percentage Signed-off-by: Michael Tremer --- 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 %}