mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-08 08:19:30 +00:00
Merge c1c449e0df
into ca6dbcb483
This commit is contained in:
commit
6408475e14
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue