detailStudent.html 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
<!--  gravatar_url student.user.email 175 %} -->
Daniel W Bond's avatar
Daniel W Bond committed
4
{% load gravatar %}
5
{% get_social_accounts student.user as accounts %}
6 7
<div class="page-header" id="banner">
  <div class="row">
8
    <div class="col-md-2 col-md-offset-1 text-center">
Daniel W Bond's avatar
Daniel W Bond committed
9
      <img class="img-circle img-responsive center center-block" src="{% gravatar_url student.user.email 175 %}" alt="{{ student.user.first_name }} Gravatar picture">
10
    </div>
11

12
    <div class="col-md-6 text-center">
13
      <h1><strong>{{ student.user.get_full_name_or_uname }}</strong></h1>
Daniel W Bond's avatar
Daniel W Bond committed
14
      {% if shares %}
15 16 17 18 19 20 21
        <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>
          {% if same_floor %}
            {% if has_flagged %}
22
              <a href="{% url 'deleteConfirmation' student.slug my_flag.slug %}">
23 24 25 26 27 28 29 30 31 32 33 34 35
                <small><span style="padding-left:15px" class="fa-stack fa-lg">
                  <i class="fa fa-flag fa-stack-1x"></i>
                  <i class="fa fa-ban fa-stack-2x text-danger"></i>
                </span></small>
              </a>
            {% else %}
              <a href="{% url 'createConfirmation' student.slug %}">
                <i style="padding-left:15px" class="fa fa-flag"></i>
              </a>
            {% endif %}
          {% endif %}
        {% endif %}
        </strong></p>
36 37 38
        {% if student.get_flag_count > 4 %}
        <p><em>* a number of other floormates say this room info is incorrect</em></p>
        {% endif %}
Daniel W Bond's avatar
Daniel W Bond committed
39 40
      {% 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
41 42 43 44
    </div>
  </div>
</div>

45 46
{% load accounts_extras %}

Daniel W Bond's avatar
Daniel W Bond committed
47
<div class="row">
48 49 50 51
  <div class="col-md-5 col-md-offset-1">
    <table class="table table-hover text-center">
      <tbody>
        <tr>
52 53 54 55 56 57 58
          <td><h4><strong>Major</strong>:
            {% if student.major %}
              {{ student.major.name }}
            {% else %}
              &nbsp;&mdash;
            {% endif %}
          </h4></td>
59
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
60

61 62 63 64 65 66 67 68 69
        <tr>
          <td><h4><strong>Class of</strong>:
          {% if student.graduating_year == None %}
              &nbsp;&mdash;
          {% else %}
             {{ student.graduating_year|bc }}
          {% endif %}</h4></td>
        </tr>

70 71 72
        <tr>
          <td><h4><strong>Email</strong>: {{ student.user.email }}</h4></td>
        </tr>
73 74 75 76 77 78 79 80
        {% if student.show_gender %}
          <tr>
            <td><h4><strong>Gender</strong>:
              {% for gender in student.gender %}
                {% if gender == 'female' %}
                  <i class="fa fa-venus"></i>
                {% elif gender == 'male' %}
                  <i class="fa fa-mars"></i>
81
                {% elif gender == 'intersex' %}
82
                  <i class="fa fa-transgender"></i>
83
                {% elif gender == 'trans' %}
84
                  <i class="fa fa-transgender-alt"></i>
85 86 87 88
                {% elif gender == 'genderless' %}
                  <i class="fa fa-genderless"></i>
                {% elif gender == 'other' %}
                  <i class="fa fa-mars-stroke-v"></i>
89 90 91 92 93
                {% endif %}
              {% endfor %}
            </h4></td>
          </tr>
        {% endif %}
94 95 96
      </tbody>
    </table>
  </div>
Daniel W Bond's avatar
Daniel W Bond committed
97

98 99 100 101
  <div class="col-md-5">
    <table class="table table-hover text-center">
      <tbody>
        <tr>
102
          <td class="col-md-4">
103 104
           <h4><i class="fa fa-facebook fa-lg"></i></h4>
          </td>
105 106
          <td class="col-md-8">
            {% if accounts.facebook %} <h4><a href="http://www.facebook.com/{{ accounts.facebook.0.uid }}" target="_blank">Facebook</a></h4> {% else %} <h4>&mdash;</h4> {% endif %}
107 108
          </td>
        </tr>
Daniel W Bond's avatar
Daniel W Bond committed
109

110 111 112 113
        <tr>
          <td>
            <h4><i class="fa fa-google fa-lg"></i></h4>
          </td>
114
          <td>{% if accounts.google %} <h4><a href="https://plus.google.com/{{ accounts.google.0.uid }}" target="_blank">Google+</a></h4> {% else %} <h4>&mdash;</h4> {% endif %}
115 116
          </td>
        </tr>
117

118 119 120 121 122
        <tr>
          <td>
            <h4><i class="fa fa-twitter fa-lg"></i></h4>
          </td>
          <td>
123 124 125 126 127 128 129 130 131 132
            {% if accounts.twitter %} <h4><a href="https://twitter.com/intent/user?user_id={{ accounts.twitter.0.uid }}" target="_blank">Twitter</a></h4> {% else %} <h4>&mdash;</h4> {% endif %}
          </td>
        </tr>

        <tr>
          <td>
            <h4><i class="fa fa-instagram fa-lg"></i></h4>
          </td>
          <td>
            {% if accounts.instagram %} <h4><a href="https://instagram/{{ accounts.instagram.0.uid }}" target="_blank">Instagram</a></h4> {% else %} <h4>&mdash;</h4> {% endif %}
133 134 135 136
          </td>
        </tr>
      </tbody>
    </table>
137 138 139
  </div>
</div>

140 141 142 143
<br />
<legend></legend>
{% include 'disclaimer.html' %}

144
{% endblock %}