{% extends "layout.html" %} {% block title %} {% if request.endpoint == 'public_timeline' %} Public Timeline {% elif request.endpoint == 'user_timeline' %} {{ profile_user.username }}'s Timeline {% else %} My Timeline {% endif %} {% endblock %} {% block body %}

{{ self.title() }}

{% if g.user %} {% if request.endpoint == 'user_timeline' %}
{% if g.user.user_id == profile_user.user_id %} This is you! {% elif followed %} You are currently following this user. Unfollow user. {% else %} You are not yet following this user. Follow user. {% endif %}
{% elif request.endpoint == 'timeline' %}

What's on your mind {{ g.user.username }}?

{% endif %} {% endif %} {% endblock %}