Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
e35b7f8c
Commit
e35b7f8c
authored
Mar 26, 2015
by
Daniel W Bond
Browse files
if student doesn't have a room, doesn't just show 'None'
parent
6b2a0969
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/detailStudent.html
View file @
e35b7f8c
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment