+ {% include 'snippets/privacy_select.html' with current=privacy %}
+
+
+
+
+
+{% endwith %}
diff --git a/bookwyrm/templates/user/shelf/shelf.html b/bookwyrm/templates/shelf/shelf.html
similarity index 70%
rename from bookwyrm/templates/user/shelf/shelf.html
rename to bookwyrm/templates/shelf/shelf.html
index 06507d3e..88f4b2bb 100644
--- a/bookwyrm/templates/user/shelf/shelf.html
+++ b/bookwyrm/templates/shelf/shelf.html
@@ -5,7 +5,7 @@
{% load i18n %}
{% block title %}
-{% include 'user/shelf/books_header.html' %}
+{% include 'user/books_header.html' %}
{% endblock %}
{% block opengraph_images %}
@@ -15,7 +15,7 @@
{% block content %}
- {% include 'user/shelf/books_header.html' %}
+ {% include 'user/books_header.html' %}
@@ -60,45 +60,62 @@
- {% include 'user/shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}
+ {% include 'shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}
-
-
-
- {{ shelf.name }}
-
- {% include 'snippets/privacy-icons.html' with item=shelf %}
-
- {% with count=books.paginator.count %}
- {% if count %}
-
- {% blocktrans trimmed count counter=count with formatted_count=count|intcomma %}
- {{ formatted_count }} book
- {% plural %}
- {{ formatted_count }} books
- {% endblocktrans %}
-
- {% if books.has_other_pages %}
- {% blocktrans trimmed with start=books.start_index end=books.end_index %}
- (showing {{ start }}-{{ end }})
+
+
+
+
+ {{ shelf.name }}
+
+ {% include 'snippets/privacy-icons.html' with item=shelf %}
+
+ {% with count=books.paginator.count %}
+ {% if count %}
+
- {% trans "Edit shelf" as button_text %}
- {% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="pencil" controls_text="edit_shelf_form" focus="edit_shelf_form_header" %}
+ {% endwith %}
+
+
+ {% if is_self and shelf.id %}
+
+
+ {% trans "Edit shelf" as button_text %}
+ {% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="pencil" controls_text="edit_shelf_form" focus="edit_shelf_form_header" %}
+
+ {% if shelf.deletable %}
+
+ {% endif %}
+
+
+ {% endif %}
+ {% if shelf.description %}
+
{{ shelf.description }}
{% endif %}
- {% include 'user/shelf/edit_shelf_form.html' with controls_text="edit_shelf_form" %}
+ {% include 'shelf/edit_shelf_form.html' with controls_text="edit_shelf_form" %}
@@ -167,17 +184,7 @@
{% else %}
-
{% trans "This shelf is empty." %}
- {% if shelf.id and shelf.editable %}
-
- {% endif %}
-
+
- {% with 0|uuid as uuid %}
+ {% firstof uuid 0|uuid as uuid %}
{% if not no_label %}
{% endif %}
@@ -20,6 +20,5 @@
{% trans "Private" %}
- {% endwith %}
diff --git a/bookwyrm/templates/user/shelf/books_header.html b/bookwyrm/templates/user/books_header.html
similarity index 100%
rename from bookwyrm/templates/user/shelf/books_header.html
rename to bookwyrm/templates/user/books_header.html
diff --git a/bookwyrm/templates/goal.html b/bookwyrm/templates/user/goal.html
similarity index 100%
rename from bookwyrm/templates/goal.html
rename to bookwyrm/templates/user/goal.html
diff --git a/bookwyrm/templates/user/relationships/followers.html b/bookwyrm/templates/user/relationships/followers.html
index 223f38c7..c7d6833b 100644
--- a/bookwyrm/templates/user/relationships/followers.html
+++ b/bookwyrm/templates/user/relationships/followers.html
@@ -9,6 +9,6 @@
{% block nullstate %}
- {% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %}
+ {% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %}
- {% blocktrans with username=user.display_name %}{{ username }} isn't following any users{% endblocktrans %}
+ {% blocktrans with username=user.display_name %}{{ username }} isn't following any users{% endblocktrans %}