{% extends 'home/base.html' %} {% block content %}
{% if profile.name %}

{{ profile.name }} {% if request.user == user %} {% endif %} {% else %}

{{ user.username }} {% if request.user == user %} {% endif %}

{% endif %}
{% if profile.bio %}

{{ profile.bio }}

{% endif %}
{% if profile.location %}

Location: {{ profile.location }}

{% endif %} {% if profile.birth_date %}

Birthday: {{ profile.birth_date }}

{% endif %} {% if user == request.user %} {% else %} {% if is_following %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% endif %}
{% for post in posts %}

@{{ post.author }} {{ post.created_on }}

{% if post.image %} {% endif %}

{{ post.body }}

{% csrf_token %}
{% csrf_token %}
{% endfor %}
{% endblock content %}