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
e9d01584
Commit
e9d01584
authored
Nov 25, 2015
by
David Haynes
🙆
Browse files
Cache students shown on floor
parent
bbfff486
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/templates/detail_floor.html
View file @
e9d01584
{% extends 'layouts/base.html' %}
{% load humanize %}
{% load cache %}
{% block title %} SRCT Roomlist
•
{{ floor.building.name }} {{ floor.number|ordinal }}{% endblock %}
{% block content %}
...
...
@@ -23,6 +24,7 @@
{% load gravatar %}
<div
class=
"row"
>
{% cache 900 students request.user.username %}
{% for student in students %}
<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"
>
...
...
@@ -61,4 +63,5 @@
<legend></legend>
{% include 'disclaimer.html' %}
{% endcache %}
{% endblock %}
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