{% extends 'layouts/base.html' %} {% block title %} SRCT Roomlist • Homepage {% endblock %} {% block content %} {% load cache %} {% load gravatar %}

Welcome Back {{ request.user.first_name }}!

{% cache 300 roommates request.user.username %} {% if roomies|length == 1 %}

Your Roommate in {{ me.room }}

{% else %}

Your Roommates in {{ me.room }}

{% endif %}
{% for student in roomies %} {% empty %}

There are no other students registered in your room right now.

{% endfor %}
{% endcache %} {% load humanize %} {% cache 300 floormates request.user.username %}

Your Floormates from {{ me.room.floor.building }} {{ me.room.floor.number|ordinal }}

{% for student in floories %} {% empty %}

There are no other students registered on your floor right now.

{% endfor %}
{% endcache %} {% cache 600 majormates request.user.username %}

Other Students in {{ me.major.name }}

{% for student in majormates %} {% empty %}

There are no other students registered in your major right now.

{% endfor %}
{% endcache %} {% endblock %}