detail_room.html 2.05 KB
Newer Older
1
{% extends 'layouts/base.html' %}
2
{% block title %} SRCT Roomlist • {{ room.floor.building.name }} {{ room.number }}{% endblock %}
3 4
{% block content %}

Sherif's avatar
Sherif committed
5 6
{% load humanize %}

7 8 9
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-lg-12 text-center">
Daniel W Bond's avatar
Daniel W Bond committed
10 11
      <h1><strong>SRCT</strong>ROOMLIST</h1>
      <p class="lead"><strong>{{ room.floor.building.name }} {{ room.number }}</strong></p>
12
    </div>
13
    <div class="col-md-10 col-md-offset-1">
Sherif's avatar
Sherif committed
14 15 16 17 18 19 20 21
      <ol id="breadcrumbs" class="breadcrumb">
        <li><a href="/">Home</a></li>
        <li><a href="{% url 'list_buildings' %}">Buildings</a></li>
        <li><a href="{{ room.floor.building.get_absolute_url }}">{{ room.floor.building.name }}</a></li>
        <li><a href="{{ room.floor.get_absolute_url }}">{{ room.floor.number|ordinal }} Floor</a></li>
	<li class="active">Room {{ room.number }}</li>
      </ol>
    </div>
22 23 24
  </div>
</div>

Daniel W Bond's avatar
Daniel W Bond committed
25 26
{% load gravatar %}

27 28
<div class="row">
  {% for student in students %}
Daniel W Bond's avatar
Daniel W Bond committed
29 30
  <div class="col-sm-3 text-center">
    <img class="img-circle img-responsive center center-block" src="{% gravatar_url student.user.email 100 %}" alt="{{ student.user.first_name }} Gravatar picture">
Daniel W Bond's avatar
Daniel W Bond committed
31
    <h4><a href="{{ student.get_absolute_url }}"><strong>{{ student.user.first_name }} {{ student.user.last_name }}</strong></a></h4>
Daniel W Bond's avatar
Daniel W Bond committed
32
    <h5><em>{{ student.major.name }}</em></h5>
33 34 35
    {% if student.get_flag_count > 4 %}
      <p><em>* a number of other floormates say this info is incorrect</em></p>
    {% endif %}
Daniel W Bond's avatar
Daniel W Bond committed
36
  </div>
37 38 39
  {% endfor %}
</div>

Daniel W Bond's avatar
Daniel W Bond committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<br />

<div class="row">
  <div class="col-md-8 col-md-offset-2">
    <div class="alert alert-info text-center"><strong><em>
    {% if notOnFloor %}
    You don't live on this floor. Depending on individual privacy settings, not all students may be displayed.
    {% elif notInBuilding %}
    You don't live in this building. Depending on individual privacy settings, not all students may be displayed.
    {% else %}
    Don't see one of your roommates? Tell them about SRCT Roomlist!
    {% endif %}
    </em></strong></div>
  </div>
</div>

56
{% endblock %}