{% 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 {{ request.user.student.room }}

{% else %}

Your Roommates in {{ request.user.student.room }}

{% endif %}
{% for student in roomies %}
{{ student.user.first_name }} Gravatar picture

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

{% empty %}

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

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

Your Floormates from {{ home }}

{% for student in floories %}
{{ student.user.first_name }} Gravatar picture

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

{{ 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 {{ request.user.student.major }}

{% 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 %}