forked from mirrors/bookwyrm
2602ae42b0
- add logic when default shelves used - add trans strings in a few spots they were missing
19 lines
912 B
HTML
19 lines
912 B
HTML
{% load i18n %}
|
|
<div class="column is-cover">
|
|
{% include 'snippets/book_cover.html' with book=book cover_class='is-h-l is-h-m-mobile' size_mobile='medium' size='large' %}
|
|
|
|
<div class="select is-small mt-1 mb-3">
|
|
<select name="{{ book.id }}" aria-label="{% blocktrans with book_title=book.title %}Have you read {{ book_title }}?{% endblocktrans %}">
|
|
<option disabled selected value>{% trans 'Add to your books' %}</option>
|
|
{% for shelf in user_shelves %}
|
|
<option value="{{ shelf.id }}">
|
|
{% if shelf.identifier == 'to-read' %}{% trans "To Read" %}
|
|
{% elif shelf.identifier == 'reading' %}{% trans "Currently Reading" %}
|
|
{% elif shelf.identifier == 'read' %}{% trans "Read" %}
|
|
{% else %}{{ shelf.name }}{% endif %}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|