{% extends "profile/userprofile/userprofile.html" %} {% load smart_if %} {% block profileContent %} {% if userProfile.user.profile.getBooksOwned %}
title | author | ||
---|---|---|---|
{% if userbook.book.book.coverUrl %}
|
{{userbook.book.book.title}} | {{userbook.book.book.author}} | {% ifequal userbook.status 'borrowed'%} you've borrowed this book (due back on: {{userbook.book.returndue}}) {%endifequal%} {% ifequal userbook.status 'requested'%} you've sent a request to borrow this book {%endifequal%} {% if not userbook.status %} ask to borrow this book {%endif%} |
this user has no books
{% endif %} {% endblock %}