Commit ef0f8fcb authored by David Haynes's avatar David Haynes 🙆
Browse files

Cache students displayed in room

parent e9d01584
......@@ -3,6 +3,7 @@
{% block content %}
{% load humanize %}
{% load cache %}
<div class="page-header" id="banner">
<div class="row">
......@@ -25,6 +26,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,5 +63,5 @@
<br />
<legend></legend>
{% include 'disclaimer.html' %}
{% endcache %}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment