detail_floor.html 2.23 KB
Newer Older
1
{% extends 'layouts/base.html' %}
2
{% load humanize %}
3 4
{% block title %} SRCT Roomlist • {{ floor.building.name }} {{ floor.number|ordinal }}{% endblock %}
{% block content %}
5

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

23 24
{% load gravatar %}

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

44 45 46 47
<br />

<div class="row">
  <div class="col-md-8 col-md-offset-2">
48 49 50 51 52 53
    <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 %}
Daniel W Bond's avatar
Daniel W Bond committed
54
    Don't see someone you know who lives here? Tell them about SRCT Roomlist!
55 56
    {% endif %}
    </em></strong></div>
57 58 59
  </div>
</div>

60 61 62 63
<br />
<legend></legend>
{% include 'disclaimer.html' %}

64
{% endblock %}