Renames "shelves" in the UI to "books"

Still haven't figure out the create/edit wording tho
This commit is contained in:
Mouse Reeve
2021-03-31 09:22:23 -07:00
parent 8b9b70d9cd
commit 83e4ec00f9
6 changed files with 15 additions and 13 deletions

View File

@ -3,14 +3,14 @@
{% load humanize %}
{% load i18n %}
{% block title %}
{% include 'user/books_header.html' %}
{% endblock %}
{% block header %}
<header class="columns">
<h1 class="title">
{% if is_self %}
{% trans "Your Shelves" %}
{% else %}
{% blocktrans with username=user.display_name %}{{ username }}: Shelves{% endblocktrans %}
{% endif %}
{% include 'user/books_header.html' %}
</h1>
</header>
{% endblock %}

View File

@ -23,12 +23,14 @@
{% block panel %}
{% if user.bookwyrm_user %}
<div class="block">
<h2 class="title">{% trans "Shelves" %}</h2>
<h2 class="title">
{% include 'user/books_header.html' %}
</h2>
<div class="columns">
{% for shelf in shelves %}
<div class="column is-narrow">
<h3>{{ shelf.name }}
{% if shelf.size > 3 %}<small>(<a href="{{ shelf.local_path }}">{% blocktrans with size=shelf.size %}See all {{ size }}{% endblocktrans %}</a>)</small>{% endif %}</h3>
{% if shelf.size > 3 %}<small>(<a href="{{ shelf.local_path }}">{% blocktrans with size=shelf.size %}View all {{ size }}{% endblocktrans %}</a>)</small>{% endif %}</h3>
<div class="is-mobile field is-grouped">
{% for book in shelf.books %}
<div class="control">
@ -41,7 +43,7 @@
</div>
{% endfor %}
</div>
<small><a href="{{ user.local_path }}/shelves">{% blocktrans %}See all {{ shelf_count }} shelves{% endblocktrans %}</a></small>
<small><a href="{{ user.local_path }}/shelves">{% trans "View all books" %}</a></small>
</div>
{% endif %}

View File

@ -65,7 +65,7 @@
{% if user.shelf_set.exists %}
{% url 'user-shelves' user|username as url %}
<li{% if url in request.path %} class="is-active"{% endif %}>
<a href="{{ url }}">{% trans "Shelves" %}</a>
<a href="{{ url }}">{% trans "Books" %}</a>
</li>
{% endif %}
</ul>