{% comment %} Displaying a queryset of Photos in columns, with pagination. Expects: * request, the request object. * photo_list, a queryset of Photos. * perms - The Django perms object. * page_obj - Optional, a DiggPaginator instance or False (default). * order - Either 'uploaded' or 'taken'. * view - 'list' (a generic list), 'detail' or 'day'. {% endcomment %} {% if photo_list|length > 0 %} {% if page_obj|default:False and page_obj.number > 1 %} {% include 'ditto/includes/pagination.html' with request=request page_obj=page_obj only %} {% endif %} {% load ditto_core %}
{% for photo in photo_list %}

{{ photo.title }}

{% if order == 'taken' %} Taken {% if view == 'day' %} {% display_time photo.taken_time link_to_day=False granularity=photo.taken_granularity %} {% else %} {% display_time photo.taken_time link_to_day=True granularity=photo.taken_granularity %} {% endif %} {% else %} Uploaded {% if view == 'day' %} {% display_time photo.post_time link_to_day=False granularity=photo.taken_granularity %} {% else %} {% display_time photo.post_time link_to_day=True granularity=photo.taken_granularity %} {% endif %} {% endif %}

{% endfor %}
{% if page_obj|default:False %} {% include 'ditto/includes/pagination.html' with request=request page_obj=page_obj only %} {% endif %} {% else %}

There are no Photos to show.

{% endif %}