This commit is contained in:
root
2022-10-13 07:07:04 +03:00
parent 30fd8f0ec3
commit 6d6712e9d2
21 changed files with 590 additions and 98 deletions

View File

@@ -15,9 +15,15 @@
{% endif %}
{% for book in books %}
<article class="book">
{% if account.permissions.books is defined and account.permissions.books == 1 %}
<button onclick="return remove({{ book.id|e }}, this.parentElement);" title="Удалить"><i class="fa-solid fa-xmark"></i></button>
{% endif %}
<img src="/storage/books/{{ book.id|e }}/0" class="unselectable" alt='Обложка книги "{{ book.title|e }}"'>
<h4><a href="/books/{{ book.id|e }}">{{ book.title|e }}</a></h3>
</article>
{% endfor %}
{% if account.permissions.books is defined and account.permissions.books == 1 %}
<script type="text/javascript" src="/js/delete.js"></script>
{% endif %}
</section>
{% endblock %}