{% extends "base.html" %} {% set c = collection %} {% block title %}{{ page_title(_('{0} :: Collections')|f(c.name)) }}{% endblock %} {% block bodyclass %}inverse{% endblock %} {% block rss_feed %} {% endblock %} {% block content %} {% with crumbs = [(url('collections.list'), _('Collections')), (None, c.name)] %} {% if c.author %} {% do crumbs.insert(1, (url('collections.user', c.author.username), c.author.name)) %} {% endif %} {{ breadcrumbs(crumbs) }} {% endwith %}

{{ c.name }} {% if not c.listed %} {{ _('private') }} {% endif %}

{% if collection.author %}

{% trans users=users_list([collection.author]) %} by {{ users }} {% endtrans %}

{% endif %}
{% cache addons.object_list %} {% if c.all_personas %}

{% trans num=addons.paginator.count %} {{ num }} Persona in this Collection {% pluralize %} {{ num }} Personas in this Collection {% endtrans %}

{{ persona_grid(addons.object_list) }}
{% else %}

{% trans num=addons.paginator.count %} {{ num }} Add-on in this Collection {% pluralize %} {{ num }} Add-ons in this Collection {% endtrans %}

{{ addon_listing_items(addons.object_list, notes=notes.next(), src="collection") }}
{% endif %} {{ addons|paginator }} {% endcache %}
{# primary #}

{{ _('What are Collections?') }}

{% trans %} Collections are groups of related add-ons that anyone can create and share. {% endtrans %}

{{ _('Explore Collections') }}
{% if tags %}

{{ _('Common Tags') }}

{% endif %} {% if author_collections %}

{{ _('More by this User') }}

{{ _('See all collections by this user') }}
{% endif %}

{{ _('Recently Viewed') }}

{# secondary #} {% endblock %} {% macro favorites_description() %} {% if c.owned_by(amo_user) %} {% if c.listed %}

{% trans %} Add-ons that you mark as favorites using the Add to Favorites feature appear below. This collection is currently public, which means everyone can see it. If you would like to hide it from public view, click the button below to make it private. {% endtrans %}

{% else %}

{% trans %} Add-ons that you mark as favorites using the Add to Favorites feature appear below. This collection is currently private, which means only you can see it. If you would like everyone to be able to see your favorites, click the button below to make it public. {% endtrans %}

{% endif %} {% else %} {# owned-by #} {% if c.description %}

{{ c.description }}

{% else %}

{{ _('My favorite add-ons') }}

{% endif %} {% endif %} {% endmacro %}