Use the translated shelf name in a book’s shelf list

Previously in the list of shelves on the page for a book it was always
using the English name of the shelf for the shelf of the reading status.
This commit is contained in:
Neil Roberts 2023-04-06 11:37:19 +02:00
parent 4b1012b185
commit 36c14655ec

View file

@ -4,6 +4,7 @@
{% load humanize %}
{% load utilities %}
{% load static %}
{% load shelf_tags %}
{% block title %}{{ book|book_title }}{% endblock %}
@ -239,7 +240,7 @@
<ul>
{% for shelf in user_shelfbooks %}
<li class="box">
<a href="{{ shelf.shelf.local_path }}">{{ shelf.shelf.name }}</a>
<a href="{{ shelf.shelf.local_path }}">{{ shelf.shelf|translate_shelf_name }}</a>
<div class="is-pulled-right">
{% include 'snippets/shelf_selector.html' with shelf=shelf.shelf class="is-small" readthrough=readthrough %}
</div>