match page title to active shelf

resolves #1586
This commit is contained in:
Hugh Rundle 2021-11-06 10:53:41 +11:00
parent 6ba605cbd0
commit d8098357e6
No known key found for this signature in database
GPG key ID: CD23D6039184286B
2 changed files with 11 additions and 1 deletions

View file

@ -5,7 +5,7 @@
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% include 'user/books_header.html' %} {% include 'user/books_header.html' with shelfname=shelf.identifier %}
{% endblock %} {% endblock %}
{% block opengraph_images %} {% block opengraph_images %}

View file

@ -1,6 +1,16 @@
{% load i18n %} {% load i18n %}
{% if is_self %} {% if is_self %}
{% if shelfname == 'to-read' %}
{% trans "To Read" %}
{% elif shelfname == 'reading' %}
{% trans "Currently Reading" %}
{% elif shelfname == 'read' %}
{% trans "Read" %}
{% elif shelfname == 'all' %}
{% trans "Your books" %} {% trans "Your books" %}
{% else %} {% else %}
{{ shelfname }}
{% endif %}
{% else %}
{% blocktrans with username=user.display_name %}{{ username }}'s books{% endblocktrans %} {% blocktrans with username=user.display_name %}{{ username }}'s books{% endblocktrans %}
{% endif %} {% endif %}