mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-26 00:48:19 +00:00
Avoid showing success and failure
This commit is contained in:
parent
b2b3ba653e
commit
99fc3aaf25
1 changed files with 8 additions and 9 deletions
|
@ -30,7 +30,14 @@
|
||||||
|
|
||||||
<div class="columns mt-3">
|
<div class="columns mt-3">
|
||||||
<section class="column is-three-quarters">
|
<section class="column is-three-quarters">
|
||||||
{% if add_succeeded %}
|
{% if add_failed %}
|
||||||
|
<div class="notification is-danger is-light">
|
||||||
|
<span class="icon icon-x" aria-hidden="true"></span>
|
||||||
|
<span>
|
||||||
|
{% trans "That book is already on this list." %}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% elif add_succeeded %}
|
||||||
<div class="notification is-success is-light">
|
<div class="notification is-success is-light">
|
||||||
<span class="icon icon-check" aria-hidden="true"></span>
|
<span class="icon icon-check" aria-hidden="true"></span>
|
||||||
<span>
|
<span>
|
||||||
|
@ -42,14 +49,6 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if add_failed %}
|
|
||||||
<div class="notification is-danger is-light">
|
|
||||||
<span class="icon icon-x" aria-hidden="true"></span>
|
|
||||||
<span>
|
|
||||||
{% trans "That book is already on this list." %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not items.object_list.exists %}
|
{% if not items.object_list.exists %}
|
||||||
<p>{% trans "This list is currently empty" %}</p>
|
<p>{% trans "This list is currently empty" %}</p>
|
||||||
|
|
Loading…
Reference in a new issue