detailStudent.html 2.35 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
13
14
15
      {% if shares %}
      <p class="lead"><strong><a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a></strong></p>
      {% 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
16
17
18
19
20
    </div>
  </div>
</div>

<div class="row">
21
22
23
24
  <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
25
          <td><h4><strong>Major</strong>: {{ student.major.name }}</h4></td>
26
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
27

28
29
30
31
32
33
        <tr>
          <td><h4><strong>Email</strong>: {{ student.user.email }}</h4></td>
        </tr>
      </tbody>
    </table>
  </div>
Daniel W Bond's avatar
Daniel W Bond committed
34

35
36
37
38
39
40
41
42
  <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>
43
            {% if accounts.facebook %} <h4><a href="http://www.facebook.com/{{ accounts.facebook.0.uid }}" target="_blank">Facebook</a></h4> {% endif %}
44
45
          </td>
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
46

47
48
49
50
51
52
53
        <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>
54

55
56
57
58
59
60
61
62
63
64
        <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>
65
66
67
  </div>
</div>

68
{% endblock %}