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
c7b606be
Commit
c7b606be
authored
Jun 15, 2015
by
Daniel W Bond
Browse files
added detail major template
parent
7b34b784
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/detail_major.html
0 → 100644
View file @
c7b606be
{% extends 'layouts/base.html' %}
{% block title %} SRCT RoomList | Majors | {{ major.name }} {% endblock title %}
{% block content %}
<div
class=
"page-header"
id=
"banner"
>
<div
class=
"row"
>
<div
class=
"col-md-12 text-center"
>
<h1><strong>
SRCT
</strong>
ROOMLIST
</h1>
<p
class=
"lead"
><strong>
{{ major.name }}
</strong></p>
</div>
</div>
</div>
{% load gravatar %}
{% comment %} Sigh... three sections of largely duplicated code. {% endcomment %}
<legend><strong><a
href=
"{% url 'list_buildings' %}#Aquia"
>
Aquia
</a></strong></legend>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
{% regroup aq_location_visible by get_building as aq_students_by_building %}
{% for building in aq_students_by_building %}
<legend><a
name=
"{{ building.grouper }}"
href=
"{{ building.grouper.get_absolute_url }}"
>
{{ building.grouper }}
</a></legend>
<div
class=
"row"
>
{% for student in building.list %}
<div
class=
"col-sm-3 text-center"
>
<img
class=
"img-circle img-responsive center center-block"
src=
"{% gravatar_url student.user.email 100 %}"
alt=
"{{ student.user.first_name }} Gravatar picture"
>
<h4><a
href=
"{{ student.get_absolute_url }}"
><strong>
{{ student.user.first_name }} {{ student.user.last_name }}
</strong></a></h4>
</div>
{% endfor %}
</div>
{% empty %}
No visible students in the database. :'-(
{% endfor %}
</div>
</div>
<br
/>
<legend><strong><a
href=
"{% url 'list_buildings' %}#Rappahannock"
>
Rappahannock
</a></strong></legend>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
{% regroup ra_location_visible by get_building as ra_students_by_building %}
{% for building in ra_students_by_building %}
<legend><a
name=
"{{ building.grouper }}"
href=
"{{ building.grouper.get_absolute_url }}"
>
{{ building.grouper }}
</a></legend>
<div
class=
"row"
>
{% for student in building.list %}
<div
class=
"col-sm-3 text-center"
>
<img
class=
"img-circle img-responsive center center-block"
src=
"{% gravatar_url student.user.email 100 %}"
alt=
"{{ student.user.first_name }} Gravatar picture"
>
<h4><a
href=
"{{ student.get_absolute_url }}"
><strong>
{{ student.user.first_name }} {{ student.user.last_name }}
</strong></a></h4>
</div>
{% endfor %}
</div>
{% empty %}
No visible students in the database. :'-(
{% endfor %}
</div>
</div>
<br
/>
<legend><strong><a
href=
"{% url 'list_buildings' %}#Shenandoah"
>
Shenandoah
</a></strong></legend>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
{% regroup sh_location_visible by get_building as sh_students_by_building %}
{% for building in sh_students_by_building %}
<legend><a
name=
"{{ building.grouper }}"
href=
"{{ building.grouper.get_absolute_url }}"
>
{{ building.grouper }}
</a></legend>
<div
class=
"row"
>
{% for student in building.list %}
<div
class=
"col-sm-3 text-center"
>
<img
class=
"img-circle img-responsive center center-block"
src=
"{% gravatar_url student.user.email 100 %}"
alt=
"{{ student.user.first_name }} Gravatar picture"
>
<h4><a
href=
"{{ student.get_absolute_url }}"
><strong>
{{ student.user.first_name }} {{ student.user.last_name }}
</strong></a></h4>
</div>
{% endfor %}
</div>
{% empty %}
No visible students in the database. :'-(
{% endfor %}
</div>
</div>
<br
/>
<legend
class=
"text-center"
>
Location not visible because of student
<a
href=
"{% url 'currentStudentSettings' %}"
>
privacy settings
</a></legend>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
{% for student in location_hidden %}
<div
class=
"col-sm-3 text-center"
>
<img
class=
"img-circle img-responsive center center-block"
src=
"{% gravatar_url student.user.email 100 %}"
alt=
"{{ student.user.first_name }} Gravatar picture"
>
<h4><a
href=
"{{ student.get_absolute_url }}"
><strong>
{{ student.user.first_name }} {{ student.user.last_name }}
</strong></a></h4>
</div>
{% endfor %}
</div>
</div>
{% endblock content %}
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