{% extends "profile/myprofile.html" %} {% load smart_if %} {% block profileContent %}
Add books
{% if booksOwned %}
Edit book list
{%endif%}
Title | Author | Status | ||
---|---|---|---|---|
{% if bookOwned.book.book.coverUrl %}
|
{{bookOwned.book.book.title}} | {{bookOwned.book.book.author}} |
{% ifequal bookOwned.status 'lent'%}
{%if bookOwned.book.currentLocation.actualUser %}
{{bookOwned.book.currentLocation.actualUser.username}}
has had this book for
{{bookOwned.daysLent}} days
{%else%}
{{bookOwned.book.currentLocation.name}}
has had this book for
{{bookOwned.daysLent}} days
{%endif%}
{% endifequal %}
|
|
You have no books - go find some more!
{% endif %}