Commit 45016944 authored by Daniel W Bond's avatar Daniel W Bond

added this template snippet to the housing pages and student profile page

parent 7382899b
......@@ -60,12 +60,13 @@
<table class="table table-hover text-center">
<tbody>
<tr>
<td><h4><strong>Major</strong>:
{% if student.major %}
<a href="{% url 'detail_major' student.major.slug %}">{{ student.major.name }}</a>
{% else %}
&nbsp;&mdash;
{% endif %}
{% if student.major.all|length == 2 %}
<td><h4><strong>Majors</strong>:
{% else %}
<td><h4><strong>Major</strong>:
{% endif %}
{% include 'double_major.html' %}
</h4></td>
</tr>
......
......@@ -29,7 +29,7 @@
<div class="col-sm-3 text-center">
<img class="img-circle img-responsive center center-block" src="{{ student.profile_image_url }}" alt="{{ student.get_first_name_or_uname }} profile picture">
<h4><a href="{{ student.get_absolute_url }}"><strong>{{ student.get_full_name_or_uname }}</strong></a></h4>
<h5><a href="{{ student.major.get_absolute_url }}"><em>{{ student.major.name }}</em></a></h5>
<h5><em>{% include 'double_major.html' %}</em></h5>
<h5><a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a></h5>
{% if student.get_flag_count %}
<p><em>*a number of other floormates say this info is incorrect</em></p>
......
......@@ -30,7 +30,7 @@
<div class="col-sm-3 text-center">
<img class="img-circle img-responsive center center-block" src="{{ student.profile_image_url }}" alt="{{ student.get_first_name_or_uname }} profile picture">
<h4><a href="{{ student.get_absolute_url }}"><strong>{{ student.get_full_name_or_uname }}</strong></a></h4>
<h5><a href="{{ student.major.get_absolute_url }}"><em>{{ student.major.name }}</em></a></h5>
<h5><em>{% include 'double_major.html' %}</em></h5>
{% if student.get_flag_count > 4 %}
<p><em>* a number of other floormates say this info is incorrect</em></p>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment