{# Shared page parts. #} {% macro _tile(h, hp, ov, label, value, field, unit="", better="up", help="", decimals=0) %} {% set d = h.delta(hp, field) %}
Everyone counts every person and every skill; a team's view counts only its own people, and only its categories if it has chosen some. So the teams' figures don't add up to these.
{% endif %} {% endmacro %} {# Team filter links, shown once there are two or more teams. link(team=...) builds the URL, keeping other filters. #} {% macro team_filter(teams, team, link) %} {% if teams|length > 1 %}{% endif %} {% endmacro %} {# The chosen team's name, or blank. #} {% macro team_name(teams, team) %}{% for t in teams if t.id == team %}{{ t.name }}{% endfor %}{% endmacro %}