{% extends "base.html" %} {% block title %} {{ collection.title }} {% endblock %} {% block description -%} {{ collection.short_description }} {%- endblock %} {% block headextra %} {% set thumb_url = collection.packages and collection.packages[0].get_thumb_url(3, True) %} {% if thumb_url -%} {%- endif %} {% endblock %} {% block author_link -%} {{ collection.author.display_name }} {%- endblock %} {% block content %}
{{ _("%(author)s's collections", author=collection.author.display_name) }} {% if current_user.is_authenticated %}
{% endif %} {% if collection.check_perm(current_user, "EDIT_COLLECTION") %} {{ _("Delete") }} {{ _("Edit") }} {% endif %}

{{ self.title() }}

{% if collection.private %} {{ _("Private") }} {% endif %} {{ _("A collection by %(author)s", author=self.author_link()) }}

{{ collection.short_description }}

{{ _("Packages") }}

{% if not collection.items %}

{{ _("To add a package, go to the package's page and click 'Add to collection'") }}

{% endif %}
{% for item in collection.items %} {% set package_link %} {{ item.package.title }} {% endset %}
{{ item.package.title }} screenshot
{{ _("%(title)s by %(author)s", title=package_link, author=item.package.author.display_name) }}

{% if item.description %} {{ item.description }} {% else %} {{ item.description or item.package.short_desc }} {% endif %}

{% endfor %}
{% endblock %}