forked from mirrors/bookwyrm
Merge pull request #1589 from hughrun/shelf-names
match page title to active shelf
This commit is contained in:
commit
582d2e6d0d
2 changed files with 11 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% include 'user/books_header.html' %}
|
{% include 'user/books_header.html' with shelf=shelf %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block opengraph_images %}
|
{% block opengraph_images %}
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% if is_self %}
|
{% if is_self %}
|
||||||
|
{% if shelf.identifier == 'to-read' %}
|
||||||
|
{% trans "To Read" %}
|
||||||
|
{% elif shelf.identifier == 'reading' %}
|
||||||
|
{% trans "Currently Reading" %}
|
||||||
|
{% elif shelf.identifier == 'read' %}
|
||||||
|
{% trans "Read" %}
|
||||||
|
{% elif shelf.identifier == 'all' %}
|
||||||
{% trans "Your books" %}
|
{% trans "Your books" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{{ shelf.name }}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
{% blocktrans with username=user.display_name %}{{ username }}'s books{% endblocktrans %}
|
{% blocktrans with username=user.display_name %}{{ username }}'s books{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue