{% extends 'layouts/base.html' %} {% block title %} SRCT Roomlist | {{ student.user.first_name }} {{ student.user.last_name }} {% endblock title %} {% block content %} {% load socialaccount %} {% load gravatar %} {% load cache %} {% cache 4 student_page request.user.username %} {% get_social_accounts student.user as accounts %}
{% if not student.on_campus %} {{ student.get_first_name_or_uname }} doesn't live on campus. {% elif student.room == None %} {{ student.get_first_name_or_uname }} hasn't set their room yet. {% else %} {{ student.room }} {% if same_floor %} {% if has_flagged %} {% else %} {% endif %} {% endif %} {% endif %}
{% if student.get_flag_count > 4 %}* a number of other floormates say this room info is incorrect
{% endif %} {% endif %} {% if student.on_campus %}shares room with: {{ student.privacy }}
{% endif %}Major: {% if student.major %} {{ student.major.name }} {% else %} — {% endif %} |
Class of: {% if student.graduating_year == None %} — {% else %} {{ student.graduating_year|bc }} {% endif %} |
Email: {{ student.user.email }} |
Gender: {% for gender in student.gender %} {% if gender == 'female' %} {% elif gender == 'male' %} {% elif gender == 'intersex' %} {% elif gender == 'trans' %} {% elif gender == 'genderless' %} {% elif gender == 'other' %} {% endif %} {% endfor %} |
|
{% if accounts.facebook and shares %} Facebook account{% else %}—{% endif %} |
|
{% if accounts.google and shares %} Google+ account{% else %}—{% endif %} |
|
{% if accounts.twitter and shares %} @{{ accounts.twitter.0.extra_data.screen_name }}{% else %}—{% endif %} |
|
{% if accounts.instagram and shares %} @{{ accounts.instagram.0.extra_data.username }}{% else %}—{% endif %} |
|
{% if accounts.tumblr and shares %} @{{ accounts.tumblr.0.extra_data.name }}{% else %}—{% endif %} |
|
{% if accounts.github and shares %} {{ accounts.github.0.extra_data.login }}{% else %}—{% endif %} |