{% extends 'layouts/base.html' %} {% block title %} SRCT Roomlist • Homepage {% endblock title %} {% block content %} {% include 'messages.html' %} {% load cache %} {% cache 15 landing request.user.username %} {% load gravatar %}

Welcome {% if not me.is_noob %} Back {% else %} {% endif %} {{ me.get_first_name_or_uname }}!

{% if me.on_campus %} {% if not me.room and me.on_campus %}

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

{% else %} {% if roomies|length == 1 %}

Your Roommate in {{ me.room }}

{% else %}

Your Roommates in {{ me.room }}

{% endif %}
{% for student in roomies %}
{{ student.get_first_name_or_uname }} profile picture

{{ student.get_full_name_or_uname }}

{% include 'double_major.html' %}
{% if forloop.counter|divisibleby:4 %}

{% endif %} {% empty %}

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

{% endfor %}
{% load humanize %}

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

{% for student in floories %}
{{ student.get_first_name_or_uname }} profile picture

{{ student.get_full_name_or_uname }}

{% include 'double_major.html' %}
{{ student.room }}
{% if forloop.counter|divisibleby:4 %}

{% endif %} {% empty %}

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

{% endfor %}
{% endif %} {% endif %} {% endcache %} {% load accounts_extras %} {% cache 120 landing_majors request.user.username %} {% if not me.major.all %}

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

{% else %} {% for major, students in majormates.items %}

Other Students in {{ major.name }}


{% for student in students %}
{{ student.get_first_name_or_uname }} profile picture

{{ student.get_full_name_or_uname }}

{{ student.graduating_year|bc }}
{% if forloop.counter|divisibleby:4 %}

{% endif %} {% empty %}

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

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