mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-23 22:36:20 +00:00
Want to read activity
This commit is contained in:
parent
8f5d6c11ef
commit
4ec6104cac
2 changed files with 16 additions and 6 deletions
|
@ -58,7 +58,7 @@
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<p class="modal-card-title">Reading "{{ book.title }}"</p>
|
<p class="modal-card-title">Started "{{ book.title }}"</p>
|
||||||
<label class="delete" for="start-reading-{{ uuid }}" aria-label="close"></label>
|
<label class="delete" for="start-reading-{{ uuid }}" aria-label="close"></label>
|
||||||
</header>
|
</header>
|
||||||
<form name="start-reading" action="/start-reading" method="post">
|
<form name="start-reading" action="/start-reading" method="post">
|
||||||
|
@ -74,12 +74,12 @@
|
||||||
</section>
|
</section>
|
||||||
<footer class="modal-card-foot">
|
<footer class="modal-card-foot">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column field is-grouped">
|
<div class="column field">
|
||||||
{% include 'snippets/privacy_select.html' %}
|
|
||||||
<label for="post-status">
|
<label for="post-status">
|
||||||
<input type="checkbox" name="post-status" class="checkbox" checked>
|
<input type="checkbox" name="post-status" class="checkbox" checked>
|
||||||
Post to feed
|
Post to feed
|
||||||
</label>
|
</label>
|
||||||
|
{% include 'snippets/privacy_select.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<button type="submit" class="button is-success">Save</button>
|
<button type="submit" class="button is-success">Save</button>
|
||||||
|
@ -123,12 +123,12 @@
|
||||||
</section>
|
</section>
|
||||||
<footer class="modal-card-foot">
|
<footer class="modal-card-foot">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column field is-grouped">
|
<div class="column field">
|
||||||
{% include 'snippets/privacy_select.html' %}
|
|
||||||
<label for="post-status">
|
<label for="post-status">
|
||||||
<input type="checkbox" name="post-status" class="checkbox" checked>
|
<input type="checkbox" name="post-status" class="checkbox" checked>
|
||||||
Post to feed
|
Post to feed
|
||||||
</label>
|
</label>
|
||||||
|
{% include 'snippets/privacy_select.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<button type="submit" class="button is-success">Save</button>
|
<button type="submit" class="button is-success">Save</button>
|
||||||
|
|
|
@ -293,6 +293,16 @@ def shelve(request):
|
||||||
# this just means it isn't currently on the user's shelves
|
# this just means it isn't currently on the user's shelves
|
||||||
pass
|
pass
|
||||||
outgoing.handle_shelve(request.user, book, desired_shelf)
|
outgoing.handle_shelve(request.user, book, desired_shelf)
|
||||||
|
|
||||||
|
# post about "want to read" shelves
|
||||||
|
if desired_shelf.identifier == 'to-read':
|
||||||
|
outgoing.handle_reading_status(
|
||||||
|
request.user,
|
||||||
|
desired_shelf,
|
||||||
|
book,
|
||||||
|
privacy='public'
|
||||||
|
)
|
||||||
|
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue