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

Welcome Back {{ me.get_first_name_or_uname }}!

{% if not me.room %}

Select your room, and we'll show you the other students on your floor.

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

{% if forloop.counter|divisibleby:4 %}

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

{% if forloop.counter|divisibleby:4 %}

{% endif %} {% endfor %}
{% endcache %} {% endif %} {% if not me.major %}

Set your major, and we'll show you some of the other students in your program.

{% else %} {% cache 600 majormates request.user.username %}

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

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