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

5
6
{% load humanize %}

7
8
9
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-lg-12 text-center">
10
11
      <h1><strong>SRCT</strong>ROOMLIST</h1>
      <p class="lead"><strong>{{ floor.building.name }} {{ floor.number|ordinal }}</strong></p>
12
13
14
15
    </div>
  </div>
</div>

16
17
{% load gravatar %}

18
<div class="row">
19

20
  {% for student in students %}
21
22
  <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
23
    <h4><a href="{{ student.get_absolute_url }}"><strong>{{ student.user.first_name }} {{ student.user.last_name }}</strong></a></h4>
24
    <h5><em>{{ student.major.name }}</em></h5>
Daniel W Bond's avatar
Daniel W Bond committed
25
    <h5><a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a></h5>
26
  </div>
27
28
  {% endfor %}
</div>
29

30
31
32
33
<br />

<div class="row">
  <div class="col-md-8 col-md-offset-2">
34
35
36
37
38
39
    <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
40
    Don't see someone you know who lives here? Tell them about SRCT Roomlist!
41
42
    {% endif %}
    </em></strong></div>
43
44
45
  </div>
</div>

46
{% endblock %}