detailStudent.html 2.5 KB
Newer Older
1
{% extends 'layouts/base.html' %} {% block title %} SRCT RoomList | {{ student.user.first_name }} {{ student.user.last_name }} {% endblock %} {% load socialaccount %} {% block content %}
Daniel W Bond's avatar
Daniel W Bond committed
2

3
4
<!--  gravatar_url student.user.email 175 %} -->
{% get_social_accounts student.user as accounts %}
5
6
<div class="page-header" id="banner">
  <div class="row">
7
    <div class="col-md-2 col-md-offset-1 text-center">
8
      <img class="img-circle img-responsive center center-block" src="{{ student.profile_image_url }}" alt="{{ student.user.first_name }} Gravatar picture">
9
10
11
    </div>
    <div class="col-md-6 text-center">
      <h1><strong>{{ student.user.first_name }} {{ student.user.last_name }}</strong></h1>
Daniel W Bond's avatar
Daniel W Bond committed
12
      {% if shares %}
13
14
15
16
17
18
19
      <p class="lead"><strong>
      {% if student.room == None %}
        {{ student.user.first_name }} hasn't set their room yet.
      {% else %}
        <a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a>
      {% endif %}
      </strong></p>
Daniel W Bond's avatar
Daniel W Bond committed
20
21
      {% endif %}
      <p><em>shares room with</em>: <span class="label label-default"><strong>{{ student.privacy }}</strong></span></p>
Daniel W Bond's avatar
Daniel W Bond committed
22
23
24
25
26
    </div>
  </div>
</div>

<div class="row">
27
28
29
30
  <div class="col-md-5 col-md-offset-1">
    <table class="table table-hover text-center">
      <tbody>
        <tr>
Daniel W Bond's avatar
Daniel W Bond committed
31
          <td><h4><strong>Major</strong>: {{ student.major.name }}</h4></td>
32
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
33

34
35
36
37
38
39
        <tr>
          <td><h4><strong>Email</strong>: {{ student.user.email }}</h4></td>
        </tr>
      </tbody>
    </table>
  </div>
Daniel W Bond's avatar
Daniel W Bond committed
40

41
42
43
44
45
46
47
48
  <div class="col-md-5">
    <table class="table table-hover text-center">
      <tbody>
        <tr>
          <td>
           <h4><i class="fa fa-facebook fa-lg"></i></h4>
          </td>
          <td>
49
            {% if accounts.facebook %} <h4><a href="http://www.facebook.com/{{ accounts.facebook.0.uid }}" target="_blank">Facebook</a></h4> {% endif %}
50
51
          </td>
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
52

53
54
55
56
57
58
59
        <tr>
          <td>
            <h4><i class="fa fa-google fa-lg"></i></h4>
          </td>
          <td>{% if accounts.google %} <h4><a href="https://plus.google.com/{{ accounts.google.0.uid }}" target="_blank">Google+</a></h4> {% endif %}
          </td>
        </tr>
60

61
62
63
64
65
66
67
68
69
70
        <tr>
          <td>
            <h4><i class="fa fa-twitter fa-lg"></i></h4>
          </td>
          <td>
            {% if accounts.twitter %} <h4><a href="https://twitter.com/intent/user?user_id={{ accounts.twitter.0.uid }}" target="_blank">Twitter</a></h4> {% endif %}
          </td>
        </tr>
      </tbody>
    </table>
71
72
73
  </div>
</div>

74
{% endblock %}