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

{% translate "Analytics" %}

{% translate "Performance across your connected channels." %}

{# Control row #}
{# Account switcher #}
{% translate "Connected accounts" %}
{% for acc in accounts %}
{% if acc.avatar_url %} {% else %}
{{ acc.account_name|make_list|first|upper }}
{% endif %} {% if acc.platform != "youtube" %}
{% include "partials/_platform_icon.html" with platform=acc.platform size="sm" %}
{% endif %}
{{ acc.account_name }}{% if acc.platform == "youtube" %} YouTube{% endif %} {{ acc.follower_count|intcomma }} {% if acc.platform == "youtube" %}{% translate "subscribers" %}{% else %}{% translate "followers" %}{% endif %} {% 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 %} {% translate "No data" %} {% endif %} {% if acc.id == active_account.id %} {% endif %}
{% endfor %}
{% if not is_fresh %}
{% if active_account.platform != "youtube" %}
{% translate "Followers" %}
{{ active_account.follower_count|intcomma }}
{% endif %} {% if follower_growth %} {% if active_account.platform != "youtube" %}
{% endif %}
{% if active_account.platform == "youtube" %}{% translate "New subscribers" %}{% else %}{% translate "New followers" %}{% endif %}
+{{ follower_growth.value|floatformat:0 }} {% if follower_growth.comparison_available %}{% include "analytics/_delta_chip.html" with delta=follower_growth.delta %}{% endif %}
{% endif %}
{% endif %}
{% if not is_fresh or active_account.platform == "youtube" %} {# Range toggle #}
{% for n in range_choices %} {{ n }}D {% endfor %}
{% endif %}