{% comment %} Displays a list of Tweets, with pagination. Expects: * tweet_list, a queryset of Tweets. * perms - The Django perms object. * page_obj, optional, a DiggPaginator instance or False (default). * view - optional, 'list' (a generic list, the default), 'detail' or 'day'. {% endcomment %} {% if tweet_list|length > 0 %} {% with view=view|default_if_none:'list' %} {% if page_obj and page_obj.number > 1 %} {% include 'ditto/includes/pagination.html' with page_obj=page_obj only %} {% endif %}
{% if page_obj|default:False %} {% include 'ditto/includes/pagination.html' with page_obj=page_obj only %} {% endif %} {% endwith %} {% else %}

There are no Tweets to show.

{% endif %}