{% extends "site.html" %} {% load smart_if %} {% block content %}
{%if contact%}

{{contact.name}}

{%if contact.email %}
email:
{{contact.email}}
{%endif%} {% if contact.twitterUsername %}
twitter:
@{{contact.twitterUsername}}
{%endif%} {% if contact.facebookId %}
facebook:
{{contatc.name}}
{%endif%} {% if contact.notes %}
notes:
{{contact.notes}}
{%endif%}
{%if contact.getBorrowed %} {% for borrowedBook in contact.getBorrowed %} {%endfor%}
books {{contact.name}} has borrowed from you:
  Title: Author:  
{% if borrowedBook.book.coverUrl %} {% endif %} {{borrowedBook.book.title}} {{borrowedBook.book.author}} {{contact.name}} returned this book
{%endif%}
{%else%} no was found contact found {%endif%} {%endblock%}