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
45016944
Commit
45016944
authored
Oct 04, 2016
by
Daniel W Bond
Browse files
added this template snippet to the housing pages and student profile page
parent
7382899b
Changes
3
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/detailStudent.html
View file @
45016944
...
...
@@ -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 %}
—
{% 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>
...
...
roomlist/housing/templates/detail_floor.html
View file @
45016944
...
...
@@ -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>
...
...
roomlist/housing/templates/detail_room.html
View file @
45016944
...
...
@@ -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 %}
...
...
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