{% extends 'layout.html' %} {% block content %}

{% if user.name %}{{ user.name }}
{% endif %}{% if user.localname %}{{ user.localname }}{% else %}{{ user.username }}{% endif %}

{% if user.summary %}
{{ user.summary }}
{% endif %} {% if is_self %}Edit profile

Since {{ user.created_date }}

{% endif %} {% if not is_self %} {% if not following %}
{% else %}
{% endif %} {% endif %}

Books

{% for book in books.all %}
{{ book.data.title }} by {{ book.authors.first.data.name }}
{% endfor %}

Followers

{% for follower in user.followers.all %}
{{ follower.username }}
{% endfor %}
{% endblock %}