From 83e4ec00f917df41909bf50ea6d825c8dccac6d2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 31 Mar 2021 09:22:23 -0700 Subject: [PATCH] Renames "shelves" in the UI to "books" Still haven't figure out the create/edit wording tho --- bookwyrm/templates/layout.html | 2 +- bookwyrm/templates/snippets/shelf_selector.html | 4 ++-- .../snippets/shelve_button/shelve_button_options.html | 2 +- bookwyrm/templates/user/shelf.html | 10 +++++----- bookwyrm/templates/user/user.html | 8 +++++--- bookwyrm/templates/user/user_layout.html | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index f0f04b846..0937fcc30 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -55,7 +55,7 @@ diff --git a/bookwyrm/templates/user/shelf.html b/bookwyrm/templates/user/shelf.html index 4c60258c9..9e0455726 100644 --- a/bookwyrm/templates/user/shelf.html +++ b/bookwyrm/templates/user/shelf.html @@ -3,14 +3,14 @@ {% load humanize %} {% load i18n %} +{% block title %} +{% include 'user/books_header.html' %} +{% endblock %} + {% block header %}

- {% if is_self %} - {% trans "Your Shelves" %} - {% else %} - {% blocktrans with username=user.display_name %}{{ username }}: Shelves{% endblocktrans %} - {% endif %} + {% include 'user/books_header.html' %}

{% endblock %} diff --git a/bookwyrm/templates/user/user.html b/bookwyrm/templates/user/user.html index 52a915610..2b9968722 100644 --- a/bookwyrm/templates/user/user.html +++ b/bookwyrm/templates/user/user.html @@ -23,12 +23,14 @@ {% block panel %} {% if user.bookwyrm_user %}
-

{% trans "Shelves" %}

+

+ {% include 'user/books_header.html' %} +

{% for shelf in shelves %} {% endif %} diff --git a/bookwyrm/templates/user/user_layout.html b/bookwyrm/templates/user/user_layout.html index d60db2a00..c40b9e77d 100644 --- a/bookwyrm/templates/user/user_layout.html +++ b/bookwyrm/templates/user/user_layout.html @@ -65,7 +65,7 @@ {% if user.shelf_set.exists %} {% url 'user-shelves' user|username as url %} - {% trans "Shelves" %} + {% trans "Books" %} {% endif %}