{% macro heading(addon, amo, collection) %}

{% if collection %} {% set collection_path = "?src=collection&collection_id=" + collection.uuid %} {% else %} {% set collection_path = "" %} {% endif %} {{ addon.name }} {{ addon_users_list(addon) }}

{% endmacro %} {% macro item_info(addon, amo, show_date, show_downloads=False) %} {{ reviews_link(addon) }}

{% if show_downloads or addon.type == amo.ADDON_SEARCH %} {% with num=addon.weekly_downloads %} {# L10n: {0} is the number of downloads. #} {{ ngettext("{0} weekly download", "{0} weekly downloads", num)|f(num|numberfmt)|safe }} {% endwith %} {% else %} {% with num=addon.average_daily_users %} {# L10n: {0} is the number of users. #} {{ ngettext("{0} user", "{0} users", num)|f(num|numberfmt)|safe }} {% endwith %} {% endif %}

{% if show_date in ['created', 'new', 'newest'] %} {{ _('Added {0}')|f(addon.created|datetime) }} {% elif show_date == 'updated' %} {# L10n: {0} is a date #} {{ _('Updated {0}')|f(addon.last_updated|datetime) }} {% endif %}

{% endmacro %}