{% extends "impala/base_shared.html" %} {% set range = view.range %} {% set c = collection if collection %} {% block bodyclass %}statistics{% endblock %} {% block extrahead %} {{ css('zamboni/stats') }} {% endblock %} {% block title %} {# L10n: {0} is an add-on name, {1} is an app name (like Firefox) #} {% if addon %} {{ _('{0} :: Statistics Dashboard :: Add-ons for {1}')|fe(addon.name, request.APP.pretty) }} {% elif c %} {{ _('{0} :: Statistics Dashboard')|f(c.name) }} {% else %} {{ _('Statistics Dashboard :: Add-ons for {0}')|f(request.APP.pretty) }} {% endif %} {% endblock %} {% block navbar %}
{% if addon %} {{ impala_breadcrumbs([(addon.type_url(), amo.ADDON_TYPES[addon.type]), (addon.get_url_path(), addon.name), (link, _('Statistics'))]) }} {% elif c %} {{ impala_breadcrumbs([(url('collections.list'), _('Collections')), (url('collections.user', c.author.username), c.author.name), (c.get_url_path(), c.name), (None, _('Statistics'))]) }} {% else %} {{ impala_breadcrumbs([(link, _('Statistics'))]) }} {% endif %} {# TODO: Replace above line with this --> once we serve the extension home. { breadcrumbs([(addon.type.get_url_path(), amo.ADDON_TYPES[addon.type_id])]) } #}
{% if addon %}

{# L10n: {0} is an add-on name #} {{ _('Statistics for {0}')|fe(addon.name) }}

{% elif c %}

{{ _('Statistics for {0}')|fe(c.name) }}

{% else %}

{{ _('Statistics Dashboard') }}

{% endif %}
{% endblock %} {% block content %} {% if not waffle.switch('local-statistics-processing') %}
{% trans %} Statistics processing is currently disabled, so recent data is unavailable. The statistics are still being collected and this page will be updated soon with the missing data. {% endtrans %}
{% endif %}
{{ _('Loading the latest data…') }}
{% if addon %} {{ report_menu(request, report, obj=addon) }} {% elif c %} {{ report_menu(request, report, obj=c) }} {% else %} {{ report_menu(request, report) }} {% endif %} {% block stats_note_link %} {% endblock %}

  

{{ _('No data available.') }}

{% block stats %} {% endblock %} {% block csvtable %}
{% block csvtitle %}{% endblock %}
{% endblock %} {% if addon %}
{% if addon.public_stats %}

{{ _('This dashboard is currently public.') }}

{% if request.check_ownership(addon) %}

{{ _('Contribution stats are currently private.') }}

{% endif %} {% else %}

{{ _('This dashboard is currently private.') }}

{% endif %} {% if request.check_ownership(addon) %}

{{ _('Change settings.') }}

{% endif %}
{% endif %}
{% endblock %} {% block popups %} {% include 'stats/popup.html' %} {% endblock %} {% block js %} {{ js('zamboni/stats') }} {% endblock %}