1
0
Fork 0

Merge pull request #1003 from bookwyrm-social/list-fixes

Improve list suggestion experience
This commit is contained in:
Mouse Reeve 2021-04-26 13:48:26 -07:00 committed by GitHub
commit d4dbfbe3c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 10423 additions and 3179 deletions

View file

@ -13,6 +13,16 @@
<div class="columns mt-3">
<section class="column is-three-quarters">
{% if request.GET.updated %}
<div class="notification is-primary">
{% if list.curation != "open" and request.user != list.user %}
{% trans "You successfully suggested a book for this list!" %}
{% else %}
{% trans "You successfully added a book to this list!" %}
{% endif %}
</div>
{% endif %}
{% if not items.object_list.exists %}
<p>{% trans "This list is currently empty" %}</p>
{% else %}
@ -116,7 +126,7 @@
</div>
<div class="column">
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
<form name="add-book" method="post" action="{% url 'list-add-book' %}">
<form name="add-book" method="post" action="{% url 'list-add-book' %}{% if query %}?q={{ query }}{% endif %}">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="list" value="{{ list.id }}">