|
{{ (loop.index0 + 1) }}
|
{{item.release_name}}
{% if item.release_format %}
{{ item.release_format|upper|replace_format() }}
{% endif %}
{{item.artist_name}}
{% if item.subaccount_name %}
{{ item.subaccount_name }}
{% endif %}
|
{% if item.growth_percentage is defined and item.growth_percentage is not none %}
{% if item.growth_percentage < -0.5 %}
{% set growth_color = '#d54236' %}
{% elif item.growth_percentage > 0.5 %}
{% set growth_color = '#06a459' %}
{% else %}
{% set growth_color = '#A8A0A0' %}
{% endif %}
{{item.total_streams | format_number() }}
{{ item.growth_percentage | format_growth_percentage }}
{% else %}
{{item.total_streams | format_number() }}
{% endif %}
|
{% for store in stores %}
{% if item.store_percentages[store] is defined and item.store_percentages[store] is not none and item.store_percentages[store] != 'N/A' %}
{{ item.store_percentages[store].get('streams_per_store', '-') | format_number() }}
{% if item.store_percentages[store].get('growth_percentage_per_store') is defined and item.store_percentages[store].get('growth_percentage_per_store') is not none %}
{% if item.store_percentages[store].get('growth_percentage_per_store') < -0.5 %}
{% set growth_color = '#d54236' %}
{% elif item.store_percentages[store].get('growth_percentage_per_store') > 0.5 %}
{% set growth_color = '#06a459' %}
{% else %}
{% set growth_color = '#A8A0A0' %}
{% endif %}
{{ item.store_percentages[store].get('growth_percentage_per_store') | format_growth_percentage }}
{% else %}
-
{% endif %}
{% else %}
-
{% endif %}
|
{% endfor %}
{% endfor %}