This commit is contained in:
Joachim 2024-04-05 23:17:13 +02:00 committed by GitHub
commit 6408475e14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,9 @@
{% endif %}
<th>{% trans "Rating" as text %}{% include 'snippets/table-sort-header.html' with field="rating" sort=sort text=text %}</th>
{% endif %}
{% if shelves|length > 0 %}
<th>{% trans "Shelves" %}</th>
{% endif %}
{% if shelf.user == request.user %}
<th aria-hidden="true"></th>
{% endif %}
@ -192,6 +195,19 @@
{% include 'snippets/stars.html' with rating=book.rating %}
</td>
{% endif %}
{% if shelves|length > 0 %}
<td data-title="{% trans "Shelves" %}">
{% spaceless %}
{% for shelf in shelves %}
{% if shelf in book.shelves.all %}
<a href="{{ shelf.local_path }}">
{% include "snippets/translated_shelf_name.html" with shelf=shelf %}
</a>{% if not forloop.last %}<br>{% endif %}
{% endif %}
{% endfor %}
{% endspaceless %}
</td>
{% endif %}
{% if shelf.user == request.user %}
<td class="book-preview-top-row has-text-right">
{% with right=True %}