detail_floor.html 2.03 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
    </div>
Sherif's avatar
Sherif committed
13 14 15 16 17 18 19 20
    <div class="col-md-12">
      <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>
21 22 23
  </div>
</div>

24 25
{% load gravatar %}

26
<div class="row">
27

28
  {% for student in students %}
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>
32
    <h5><em>{{ student.major.name }}</em></h5>
Daniel W Bond's avatar
Daniel W Bond committed
33
    <h5><a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a></h5>
34 35 36
    {% if student.get_flag_count %}
      <p><em>*a number of other floormates say this info is incorrect</em></p>
    {% endif %}
37
  </div>
38 39
  {% endfor %}
</div>
40

41 42 43 44
<br />

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

57
{% endblock %}