{% extends "base.html" %} {% block title %} {% if user %} {{ _("%(author)s's collections", author=user.display_name) }} {% else %} {{ _("Collections") }} {% endif %} {% endblock %} {% block author_link -%} {{- user.display_name -}} {%- endblock %} {% block content %} {% if user %} {% if current_user == user or (current_user.is_authenticated and current_user.rank.at_least(current_user.rank.EDITOR)) %} {{ _("Create") }} {% endif %}

{{ _("%(author)s's collections", author=self.author_link()) }}

{% else %}

{{ _("Collections") }}

{% endif %}
{% for collection in collections -%} {% if collection.private %} {% endif %} {% if collection.name == 'favorites' %} {% endif %} {% if user != collection.author %} {{ _("%(title)s by %(author)s", title=collection.title, author=collection.author.display_name) }} {% else %} {{ collection.title }} {% endif %} {{ collection.short_description }} {% else %}
{{ _("No collections") }}
{% endfor %}
{% endblock %}