Commit 88d05e6a authored by Daniel W Bond's avatar Daniel W Bond

added bc joke filter now that we're displaying graduating year additional places

parent b0610b96
......@@ -14,11 +14,12 @@
</div>
{% load gravatar %}
{% load accounts_extras %}
{% regroup major_students by graduating_year as students %}
{% for graduating_year in students %}
<legend>{{ graduating_year.grouper }}</legend>
<legend>{{ graduating_year.grouper|bc }}</legend>
<div class="row">
<div class="col-md-12">
<div class="row">
......
......@@ -54,9 +54,10 @@ SRCT Roomlist &bull; Search Students
<h4>{% include 'double_major.html' %}</h4>
{% endwith %}
</td>
{% load accounts_extras %}
<td>
{% if result.object.graduating_year %}
<h4>{{ result.object.graduating_year }}</h4>
<h4>{{ result.object.graduating_year|bc }}</h4>
{% else %}
&nbsp;&mdash;
{% endif %}
......
......@@ -77,7 +77,7 @@ Back
{% endif %}
{% endcache %}
{% load accounts_extras %}
{% cache 120 landing_majors request.user.username %}
{% if not me.major.all %}
<h3><em><a href="{% url 'update_student' request.user.username %}">Set your major</a>, and we'll show you some of the other students in your program.</em></h3>
......@@ -90,6 +90,7 @@ Back
<div class="col-md-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>{{ student.graduating_year|bc }}</h5>
</div>
{% if forloop.counter|divisibleby:4 %}
</div>
......
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