{% if request.user.is_authenticated and not lists.has_previous %}
Your lists
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text="Create new list" focus="create-list-header" %}
{% include 'lists/create_form.html' with controls_text="create-list" %}
{% if request.user.list_set.exists %}
{% include 'lists/list_items.html' with lists=request.user.list_set.all|slice:4 %}
{% endif %}
{% if request.user.list_set.count > 4 %}
See all {{ request.user.list_set.count}} lists
{% endif %}
{% endif %}
{% if lists %}
Recent Lists
{% include 'lists/list_items.html' with lists=lists %}
{% include 'snippets/pagination.html' with page=lists path=path %}