{% extends "profile/myprofile.html" %} {% load smart_if %} {% block profileContent %} {% comment %}

Notifications

{% endcomment %}

What's New?

{% if user.profile.getBooksOwned.count and user.profile.getBooksLent.count %} You have: {% endif %} {% if user.profile.getBooksOwned.count %}
{{user.profile.getBooksOwned.count}} books in your library
{% if user.profile.getBooksLent.count %}
Lent out {{user.profile.getBooksLent.count}} books
{% else %}
You're currently not lending any books.
{%endif%} {% else %}
You've no books! Find some to add!
{% endif %} {% if user.profile.getBooksBorrowed.count %}
Borrowed {{user.profile.getBooksBorrowed.count}} books
{% else %}
You're not borrowing any books - have a look through the collections of your friends
{% endif %} {% if user.profile.getFriendRequests.count %}
{{user.profile.getFriendRequests.count}} friend requests
{% endif %} {% if user.profile.getRequestQueue.count %}
{{user.profile.getRequestQueue.count}} requests to borrow your books
{% endif %} {% if user.profile.getBooksRequested.count %}
Sent {{user.profile.getBooksRequested.count}} requests to borrow friends books
{% endif %}
{% if user.profile.getBooksBorrowed %}

Books Borrowed:

{% for borrowedBook in booksBorrowed %} {% endfor %}
  Book Borrowed from For how long?  
{% if borrowedBook.book.book.coverUrl %} {% endif %} {{borrowedBook.book.book.title}}
{{borrowedBook.book.owner}}
You've had this book for {{borrowedBook.daysLent}} days I've returned this book
{% endif %}
{% if booksLent %}

Books Lent:

{% for borrowedBook in booksLent %} {% endfor %}
  book lent to  
{% if borrowedBook.book.book.coverUrl %} {% endif %} {{borrowedBook.book.book.title}} {%if borrowedBook.book.currentLocation.actualUser %}
{{borrowedBook.book.currentLocation.actualUser.username}}
has had this book for {{borrowedBook.daysLent}} days {%else%}
{{borrowedBook.book.currentLocation.name}}
has had this book for {{borrowedBook.daysLent}} days {%endif%} {%if borrowedBook.book.returnNotified%}

{{borrowedBook.book.currentLocation.getSensibleName}} notified you they returned this book.

{%endif %}
{{borrowedBook.book.currentLocation.getSensibleName}} returned this book
{% endif %}
{%endblock%}