moviewyrm/bookwyrm/templates/lists/lists.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2021-01-31 05:33:41 +00:00
{% extends 'layout.html' %}
{% load bookwyrm_tags %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% block title %}{% trans "Lists" %}{% endblock %}
2021-01-31 05:33:41 +00:00
{% block content %}
2021-02-23 21:04:24 +00:00
<header class="block columns is-mobile">
2021-02-03 20:25:33 +00:00
<div class="column">
<h1 class="title">
{% trans "Lists" %}
{% if request.user.is_authenticated %}
<a class="help has-text-weight-normal" href="{% url 'user-lists' request.user|username %}">{% trans "Your Lists" %}</a>
{% endif %}
</h1>
2021-02-03 20:25:33 +00:00
</div>
{% if request.user.is_authenticated %}
2021-02-03 20:25:33 +00:00
<div class="column is-narrow">
{% trans "Create List" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text=button_text focus="create-list-header" %}
2021-02-03 20:25:33 +00:00
</div>
{% endif %}
2021-02-03 20:25:33 +00:00
</header>
2021-01-31 16:08:52 +00:00
2021-02-03 20:25:33 +00:00
<div class="block">
{% include 'lists/create_form.html' with controls_text="create-list" %}
</div>
2021-01-31 16:08:52 +00:00
2021-02-01 01:34:06 +00:00
{% if lists %}
<section class="block">
2021-01-31 22:03:38 +00:00
{% include 'lists/list_items.html' with lists=lists %}
2021-01-31 16:08:52 +00:00
</section>
2021-02-01 01:34:06 +00:00
<div>
{% include 'snippets/pagination.html' with page=lists path=path %}
</div>
2021-01-31 16:08:52 +00:00
{% endif %}
2021-01-31 05:33:41 +00:00
{% endblock %}