{% extends 'user/user_layout.html' %} {% load bookwyrm_tags %} {% load i18n %} {% block title %}{% blocktrans with username=user.display_name %}Shelves: {{ username }}{% endblocktrans %}{% endblock %} {% block header %}

{% if is_self %} {% trans "Your Shelves" %} {% else %} {% blocktrans with username=user.display_name %}{{ username }}: Shelves{% endblocktrans %} {% endif %}

{% endblock %} {% block panel %}
{% if is_self %}
{% trans "Create Shelf" as button_text %} {% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" controls_text="create-shelf-form" focus="create-shelf-form-header" %}
{% endif %}
{% include 'user/create_shelf_form.html' with controls_text='create-shelf-form' %}

{{ shelf.name }} {% include 'snippets/privacy-icons.html' with item=shelf %}

{% if is_self %}
{% include 'snippets/toggle/open_button.html' with text="Edit shelf" icon="pencil" controls_text="edit-shelf-form" focus="edit-shelf-form-header" %}
{% endif %}
{% include 'user/edit_shelf_form.html' with controls_text="edit-shelf-form" %}
{% include 'snippets/shelf.html' with shelf=shelf books=books ratings=ratings %}
{% endblock %}