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
7b7338b0
Commit
7b7338b0
authored
Feb 21, 2015
by
Daniel W Bond
Browse files
detail_floor created, pending links
parent
04cc1bcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/templates/detail_floor.html
View file @
7b7338b0
...
...
@@ -2,19 +2,37 @@
{% block title %} SRCT RoomList
•
{{ floor.building.name }} {{ floor.number }}{% endblock %}
{% block content %}
{% load humanize %}
<div
class=
"page-header"
id=
"banner"
>
<div
class=
"row"
>
<div
class=
"col-lg-12 text-center"
>
<h1><strong>
GMU
</strong>
ROOMLIST
</h1>
<p
class=
"lead"
><strong>
{{ floor.building.name }}{{ floor.number }}
</strong></p>
<h1><strong>
SRCT
</strong>
ROOMLIST
</h1>
<p
class=
"lead"
><strong>
{{ floor.building.name }}
{{ floor.number
|ordinal
}}
</strong></p>
</div>
</div>
</div>
{% load gravatar %}
<div
class=
"row"
>
{% for student in students %}
{{ student }}
<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.user.first_name }} {{ student.user.last_name }}
</a></h4>
<h5><em>
{{ student.major.name }}
</em></h5>
<h5><strong><a
href=
"#"
>
{{ student.room }}
</a></strong></h5>
</div>
{% endfor %}
</div>
<br
/>
<div
class=
"row"
>
<div
class=
"col-md-8 col-md-offset-2"
>
<div
class=
"alert alert-info text-center"
><strong><em>
Depending on individual privacy settings, not all students may be displayed.
</em></strong></div>
</div>
</div>
{% endblock %}
roomlist/settings/settings.py
View file @
7b7338b0
...
...
@@ -62,6 +62,7 @@ INSTALLED_APPS = (
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.sites'
,
'django.contrib.humanize'
,
# apps
'api'
,
'housing'
,
...
...
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