{#- Figures in the hero of an authority's home page. Expects (set by blocks/portal-home.html): p_auths_n (subordinate authorities), p_total (organisations below, all levels), p_kinds (list of [kind, count] for direct organisations). Prints nothing when every figure is zero. -#} {% if p_auths_n or p_total %}
{% if p_auths_n %}
{% set n = p_auths_n %}{% set pl = 'portal.count.authority' %}{% include "blocks/plural.html" %}
{{ p_auths_n }}
{% endif %} {% if p_total %}
{% set n = p_total %}{% set pl = 'portal.count.org' %}{% include "blocks/plural.html" %}
{{ p_total }}
{% endif %} {% if not p_auths_n and p_kinds|length > 1 %} {% for k in p_kinds %}{% if k[0] in ['school', 'kindergarten', 'college'] %}
{% set n = k[1] %}{% set pl = 'portal.count.' ~ k[0] %}{% include "blocks/plural.html" %}
{{ k[1] }}
{% endif %}{% endfor %} {% endif %}
{% endif %}