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

if student doesn't have a room, doesn't just show 'None'

parent 6b2a0969
......@@ -10,7 +10,13 @@
<div class="col-md-6 text-center">
<h1><strong>{{ student.user.first_name }} {{ student.user.last_name }}</strong></h1>
{% if shares %}
<p class="lead"><strong><a href="{{ student.room.get_absolute_url }}">{{ student.room }}</a></strong></p>
<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>
{% endif %}
</strong></p>
{% endif %}
<p><em>shares room with</em>: <span class="label label-default"><strong>{{ student.privacy }}</strong></span></p>
</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