detailStudent.html 2.29 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">
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
12
13
    </div>
    <div class="col-md-6 text-center">
      <h1><strong>{{ student.user.first_name }} {{ student.user.last_name }}</strong></h1>
      <p class="lead"><strong>{{ student.room }}</strong></p>
      <p><em>shared with</em>: <span class="label label-default">campus</span></p>
Daniel W Bond's avatar
Daniel W Bond committed
14
15
16
17
18
    </div>
  </div>
</div>

<div class="row">
19
20
21
22
23
24
  <div class="col-md-5 col-md-offset-1">
    <table class="table table-hover text-center">
      <tbody>
        <tr>
          <td><h4><strong>Major</strong>: {{ student.major.major_name }}</h4></td>
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
25

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

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

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

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

67
{% endblock %}