{#- Badge macros (locked rules). Badges come from the server-computed list in the data, never from the browser.
    DFE wins over Founding. Anonymous: "Anonymous", no badges, no licences, no profile link. Gold tick: paid or gifted Premium. -#}
{% macro pilot_name(a) -%}
{%- if a.anonymous -%}<span class="uname">Anonymous</span>
{%- elif 'dfe' in a.badges -%}<span class="uname">{{ a.name }}<span class="dfe-suffix">.dfe</span></span> {{ svg.tick_dfe(15) }}
{%- elif 'founding' in a.badges -%}<span class="uname">{{ a.name }}</span> {{ svg.compass(15) }}
{%- else -%}<span class="uname">{{ a.name }}</span>{%- endif -%}
{%- endmacro %}
{% macro school_name(handle, paid) -%}
<span class="uname">{{ handle }}<span class="official-suffix">.official</span></span>{% if paid %} {{ svg.tick_ato(15) }}{% endif %}
{%- endmacro %}
{% macro licences(a) -%}
{%- if not a.anonymous and a.licences %}<div class="ob-lic">{% for l in a.licences %}<span class="member-badge">{{ l }}</span>{% endfor %}</div>{% endif -%}
{%- endmacro %}
