detailStudent.html 2.3 KB
Newer Older
1
{% extends 'layouts/base.html' %} {% block title %} GMU 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">
Daniel W Bond's avatar
Daniel W Bond committed
7
    <div class="col-md-8 col-md-offset-2 text-center">
8
      <img class="img-circle img-responsive center center-block" src="{{ student.profile_image_url }}" alt="{{ student.user.first_name }} Gravatar picture">
Daniel W Bond's avatar
Daniel W Bond committed
9
10
11
12
13
14
15
16
17
18
19
20
      <h1>{{ student.user.first_name }} {{ student.user.last_name }}</h1>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-8 col-md-offset-2">
    <div class="panel panel-default">
      <div class="panel-body">
        <table class="table table-hover text-center">
          <tbody>
            <tr>
Daniel W Bond's avatar
Daniel W Bond committed
21
              <td><strong>Room</strong>: {{ student.room }}</td>
Daniel W Bond's avatar
Daniel W Bond committed
22
23
24
            </tr>

            <tr>
25
              <td><strong>Major</strong>: {{ student.major.major_name }}</td>
Daniel W Bond's avatar
Daniel W Bond committed
26
27
28
            </tr>

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

          </tbody>
        </table>
      </div>
35
36
37
38
    </div>
  </div>
</div>

39
40
41
42
43
44
45
<div class="row">
  <div class="col-md-8 col-md-offset-2">
    <div class="panel panel-default">
      <div class="panel-body">
        <table class="table table-hover text-center">
          <tbody>
            <tr>
46
47
48
              <td><i class="fa fa-facebook fa-lg"></i>
              </td>
              <td>{% if accounts.facebook %} <a href="http://www.facebook.com/{{ accounts.facebook.0.uid }}" target="_blank">Facebook</a> {% endif %}</td>
49
50
            </tr>
            <tr>
51
52
53
              <td><i class="fa fa-google fa-lg"></i>
              </td>
              <td>{% if accounts.google %} <a href="https://plus.google.com/{{ accounts.google.0.uid }}" target="_blank">Google+</a> {% endif %}</td>
54
55
            </tr>
            <tr>
56
57
58
              <td><i class="fa fa-twitter fa-lg"></i>
              </td>
              <td>{% if accounts.twitter %} <a href="https://twitter.com/intent/user?user_id={{ accounts.twitter.0.uid }}" target="_blank">Twitter</a> {% endif %}</td>
59
60
61
62
63
64
65
66
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

67
{% endblock %}