{% extends 'new_base.html' %} {% set glob={'top_tracks': top_tracks,'top_releases': top_releases,'top_new_releases': top_new_releases,'top_physical_shipments': top_physical_shipments} %} {% set table_title={'top_tracks': 'Top Songs','top_releases': 'Top Products','top_new_releases': 'Top New Products','top_physical_shipments': 'Top Physical Shipments'} %} {% set table_description = { 'top_tracks': 'See the songs that earned the most streams between', 'top_releases': 'See the products that earned the most streams between', 'top_new_releases': 'Review the performance of your latest products, ranked by streams.', 'top_physical_shipments': 'Products listed below represent those with the most shipments across the US and Canada between' } %} {% set digest_list = [] %} {# Top Songs #} {% if top_tracks and top_tracks[0] %} {% do digest_list.append('top_tracks') %} {% endif %} {# Top Products #} {% if top_releases and top_releases[0] %} {% do digest_list.append('top_releases') %} {% endif %} {# Top New Products #} {% if top_new_releases and top_new_releases[0] %} {% do digest_list.append('top_new_releases') %} {% endif %} {# Top Physical Shipments #} {% if top_physical_shipments and top_physical_shipments[0] %} {% do digest_list.append('top_physical_shipments') %} {% endif %} {% set AWAL_BRAND = 'awal' %} {% if default_brand == AWAL_BRAND %} {% set MAIN_COLOR = '#FFFFFF' %} {% set SECONDARY_COLOR = '#A9A9B2' %} {% set ODD_BG_COLOR = '#303040'%} {% set ODD_COLOR = '#A9A9B2'%} {% set EVEN_BG_COLOR = '#22222B'%} {% set EVEN_COLOR = '#A9A9B2'%} {% else %} {% set MAIN_COLOR = '#1C1C1C' %} {% set SECONDARY_COLOR = '#847C7C' %} {% set ODD_BG_COLOR = '#F7F7F7'%} {% set ODD_COLOR = '#A8A0A0'%} {% set EVEN_BG_COLOR = '#ffffff'%} {% set EVEN_COLOR = '#847C7C'%} {% endif %} {% block styles %} {% endblock %} {% block header_title %} {{ account_name }}
{% set title = table_title[category] %} {% trans %}{{title}}{% endtrans %}
{% set description = table_description[category] %}
{% trans %}{{description}}{% endtrans %}
{% if category != 'top_new_releases'%}
{{ start_date|datetimeformat(date_format='%b %d') }}
{% trans %}-{% endtrans %}
{{ end_date|datetimeformat(date_format='%b %d') }}.
{% endif %}
|