{% comment %} Display a list of the accounts we're showing photos for. Expects: * account_list - All the accounts we're showing photos for. * count - How many photos, favorites or photosets are available. * list_type - 'recent' (default), 'favorites' or 'photosets'. {% endcomment %} {% load l10n %}

{% with list_type=list_type|default_if_none:'recent' %} {{ count|localize }} {% if list_type == 'photosets' %} Album{{ count|pluralize }} {% else %} Photo{{ count|pluralize }} {% if list_type == 'favorites' %} favorited {% endif %} {% endif %} {% endwith %} {% if account_list|length == 1 %} by {{ account_list.0.user.name }} {% else %} by {{ account_list|length }} user{{ account_list|length|pluralize }} {% endif %}

{% if account_list|length > 1 %} {% endif %}