Avoid showing success and failure

This commit is contained in:
Mouse Reeve 2022-02-28 10:31:58 -08:00
parent b2b3ba653e
commit 99fc3aaf25

View file

@ -30,7 +30,14 @@
<div class="columns mt-3">
<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">
<span class="icon icon-check" aria-hidden="true"></span>
<span>
@ -42,14 +49,6 @@
</span>
</div>
{% 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 %}
<p>{% trans "This list is currently empty" %}</p>