{% extends 'base.html' %} {% block title %}Homepage{% endblock %} {% block side %}

User: {{ my_user.name }}

{% if session['cal_id']%}

House: {{ my_user.calendar.house_name }}

{% else %}

House: No House

{% endif %}
{% if session['cal_id'] %}
Search for users by name
{% else %}
Search for existing calendar by House Name.
{% endif %} {% endblock %} {% block content %}
...

{{ user.name }}

Username: {{ user.username }}

{{ house_name }}

{% if ((user.cal_id == none) and (user.user_id != session['user_id'])) %} {% endif %} {% if user.user_id == session['user_id']%} {% endif %}
{{ user.name }}'s Events
{% for party in events %}
{{ party.title }}

{{ party.description }}

{% endfor %} {% endblock %}