{% load analytics_extras humanize %}
{# Title #}

Analytics

Performance across your connected channels.

{# Control row #}
{# Account switcher #}
Connected accounts
{% for acc in accounts %}
{% if acc.avatar_url %} {% else %}
{{ acc.account_name|make_list|first|upper }}
{% endif %}
{% include "partials/_platform_icon.html" with platform=acc.platform size="sm" %}
{{ acc.account_name }} {{ acc.follower_count|intcomma }} followers {% if acc.analytics_unavailable_reason %} {% comment %} Present but unavailable. Listing it silently would be the same dead end as dropping it from the switcher entirely — select it and the page body says which of the two reasons applies. {% endcomment %} No data {% endif %} {% if acc.id == active_account.id %} {% endif %}
{% endfor %}
{% if not is_fresh %}
Followers
{{ active_account.follower_count|intcomma }}
{% if follower_growth %}
{% if active_account.platform == "youtube" %}New subscribers{% else %}New followers{% endif %}
+{{ follower_growth.value|floatformat:0 }} {% include "analytics/_delta_chip.html" with delta=follower_growth.delta %}
{% endif %}
{% endif %}
{% if not is_fresh %} {# Range toggle #}
{% for n in range_choices %} {{ n }}D {% endfor %}
{% endif %}