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

@ -55,7 +55,7 @@
<div class="navbar-start">
{% if request.user.is_authenticated %}
<a href="{% url 'user-shelves' request.user.localname %}" class="navbar-item">
{% trans "Your shelves" %}
{% trans "Your books" %}
</a>
<a href="/#feed" class="navbar-item">
{% trans "Feed" %}

View file

@ -1,7 +1,7 @@
{% extends 'components/dropdown.html' %}
{% load i18n %}
{% block dropdown-trigger %}
<span>{% trans "Change shelf" %}</span>
<span>{% trans "Move book" %}</span>
<span class="icon icon-arrow-down" aria-hidden="true"></span>
{% endblock %}
@ -25,7 +25,7 @@
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="shelf" value="{{ current.id }}">
<button class="button is-fullwidth is-small is-danger is-light" type="submit">{% trans "Unshelve" %}</button>
<button class="button is-fullwidth is-small is-danger is-light" type="submit">{% trans "Remove" %}</button>
</form>
</li>
{% endblock %}

View file

@ -45,7 +45,7 @@
{% csrf_token %}
<input type="hidden" name="book" value="{{ active_shelf.book.id }}">
<input type="hidden" name="shelf" value="{{ active_shelf.shelf.id }}">
<button class="button is-fullwidth is-small is-danger is-light" type="submit">{% trans "Unshelve" %}</button>
<button class="button is-fullwidth is-small is-danger is-light" type="submit">{% blocktrans with name=active_shelf.shelf.name %}Remove from {{ name }}{% endblocktrans %}</button>
</form>
</div>
</li>

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>