{% 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 %}
{{ student.user.first_name }} Gravatar picture

{{ student.user.get_full_name }}

{{ student.major }}
{% 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 %}
{{ student.user.first_name }} Gravatar picture

{{ student.user.first_name }} {{ student.user.last_name }}

{{ student.major }}
{{ student.room }}
{% 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 %}
{{ student.user.first_name }} Gravatar picture

{{ student.user.first_name }} {{ student.user.last_name }}

{% empty %}

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

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