mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
pass readthrough id to shelf_selector
- allows user to move book from a shelf to the 'Read' shelf using the move button.
This commit is contained in:
parent
373cc2c762
commit
c6a2de3bbc
2 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@
|
|||
<li class="box">
|
||||
{% blocktrans with path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}<a href="{{ path }}">{{ shelf_name }}</a>{% endblocktrans %}
|
||||
<div class="mb-3">
|
||||
{% include 'snippets/shelf_selector.html' with current=shelf.shelf class="is-small" %}
|
||||
{% include 'snippets/shelf_selector.html' with current=shelf.shelf class="is-small" readthrough=readthrough %}
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
{% block dropdown-list %}
|
||||
{% with book.id|uuid as uuid %}
|
||||
{% active_shelf book as active_shelf %}
|
||||
{% latest_read_through book request.user as readthrough %}
|
||||
|
||||
{% for shelf in user_shelves %}
|
||||
|
||||
{% if shelf.editable %}
|
||||
|
@ -67,7 +69,5 @@
|
|||
|
||||
{% include 'snippets/reading_modals/finish_reading_modal.html' with book=active_shelf.book controls_text="finish_reading" controls_uid=uuid move_from=current.id readthrough=readthrough %}
|
||||
|
||||
{% include 'snippets/reading_modals/progress_update_modal.html' with book=active_shelf.book controls_text="progress_update" controls_uid=uuid move_from=current.id readthrough=readthrough %}
|
||||
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue