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

<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
8 9
      <h1><strong>SRCT</strong>ROOMLIST</h1>
      <p class="lead"><strong>{{ room.floor.building.name }} {{ room.number }}</strong></p>
10 11 12 13
    </div>
  </div>
</div>

Daniel W Bond's avatar
Daniel W Bond committed
14 15
{% load gravatar %}

16 17
<div class="row">
  {% for student in students %}
Daniel W Bond's avatar
Daniel W Bond committed
18 19
  <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
20
    <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
21 22
    <h5><em>{{ student.major.name }}</em></h5>
  </div>
23 24 25
  {% endfor %}
</div>

Daniel W Bond's avatar
Daniel W Bond committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
<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>

42
{% endblock %}