{% extends 'layout.html' %} {% block content %} Lists {% if request.user.is_authenticated %} Your lists {% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text="Create new list" %} Create list {% include 'snippets/toggle/toggle_button.html' with controls_text="create-list" label="close" class="delete" nonbutton=True %} {% include 'lists/form.html' %} {% if request.user.list_set.exists %} {% for list in request.user.list_set.all %} {% include 'lists/list-item.html' with list=list %} {% endfor %} {% endif %} {% endif %} {% if lists.exists %} Recent Lists {% for list in lists %} {% include 'lists/list-item.html' with list=list %} {% endfor %} {% endif %} {% endblock %}