{% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/dropdown.html" as dropdown %} {% import "components/cards.html" as cards %} {% block main %} {{ typography::heading("All books") }} {% call cards::card() %} {% for book_with_user in books_with_user %} {% endfor %}
# Name Author(s) Owner Current Holder Actions
{{ book_with_user.book.id }} {{ book_with_user.book.title }} {{ book_with_user.book.authors }} {{ book_with_user.owner.name }} {% match book_with_user.current_holder %} {% when Some with (current_holder) %} {{ current_holder.name }} {% when None %} - {% endmatch %} {{ dropdown::book_dropdown_button(book_with_user.book) }}
{% endcall %} {% endblock %}