{# A row of status circles for the summary page. circles: list from KospexWeb.status_circles(). Diameter is set by size and the label font by font_px, so a large count stays inside a small circle; the exact count is in the tooltip. A circle with a url is a link. #} {% macro status_row(heading, total, total_href, circles, above="") %}
{% if above %}
{{ above }}
{% endif %}

{{ heading }}

Total: {{ total }}

{% for c in circles %} {% if c.url %} {% else %}{% endif %} {% endfor %}
{% endmacro %} {# The smaller row on /developers/: each circle opens that status's list. circles: KospexWeb.status_circles() plus url and current per circle. #} {% macro status_links(circles) %}
{% for c in circles %}
{{ c.label }}
{{ c.name }}
{{ c.title }}
{{ c.percentage }}%
{% endfor %}
{% endmacro %}