{% extends 'layout.html' %}
{% load i18n %}
{% load bookwyrm_tags %}

{% block title %}{{ list.name }}{% endblock %}

{% block content %}
<header class="columns content is-mobile">
    <div class="column">
        <h1 class="title">{{ list.name }} <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span></h1>
        <p class="subtitle help">{% if list.curation != 'open' %}{% trans "Created and curated by" %}{% else %}{% trans "Created by" %} {% include 'snippets/username.html' with user=list.user %}</p>
        {% endif %}
        {% include 'snippets/trimmed_text.html' with full=list.description %}
    </div>
    {% if request.user == list.user %}
    <div class="column is-narrow">
        {% trans "Edit List" as button_text %}
        {% include 'snippets/toggle/open_button.html' with text=button_text icon="pencil" controls_text="edit-list" focus="edit-list-header" %}
    </div>
    {% endif %}
</header>

<div class="block">
    {% include 'lists/edit_form.html' with controls_text="edit-list" %}
</div>

{% block panel %}{% endblock %}

{% endblock %}