Commit 094332c2 authored by Daniel W Bond's avatar Daniel W Bond

fixes the 'help, the changes I make aren't reflected on my floor, room, or major pages' problem

parent 172661ea
......@@ -2,7 +2,7 @@
{% block title %} SRCT Roomlist | Majors | {{ major.name }} {% endblock title %}
{% block content %}
{% load cache %}
{% cache 120 major_students request.user.username major %}
{% cache 15 major_students request.user.username major %}
<div class="page-header" id="banner">
<div class="row">
......
......@@ -6,6 +6,8 @@
{% endblock %}
{% block content %}
{% load cache %}
{% cache 4 student_update request.user.username %}
{% include 'room_change_warning.html' %}
......@@ -161,7 +163,7 @@
</div>
</div>
{% endcache %}
{% endblock content %}
{% block javascript %}
......
......@@ -3,7 +3,7 @@
{% block title %} SRCT Roomlist &bull; {{ floor.building.name }} {{ floor.number|ordinal }}{% endblock title %}
{% block content %}
{% load cache %}
{% cache 120 floor_students request.user.username floor %}
{% cache 15 floor_students request.user.username floor %}
<div class="page-header" id="banner">
<div class="row">
......
......@@ -2,7 +2,7 @@
{% block title %} SRCT Roomlist &bull; {{ room.floor.building.name }} {{ room.number }}{% endblock %}
{% block content %}
{% load cache %}
{% cache 120 room_students request.user.username room %}
{% cache 15 room_students request.user.username room %}
{% load humanize %}
<div class="page-header" id="banner">
......
......@@ -6,7 +6,7 @@
{% include 'messages.html' %}
{% load cache %}
{% cache 120 landing request.user.username %}
{% cache 15 landing request.user.username %}
{% load gravatar %}
<h2>Welcome Back {{ me.get_first_name_or_uname }}!</h2>
......@@ -67,7 +67,9 @@
</div>
{% endif %}
{% endcache %}
{% cache 120 landing_majors request.user.username %}
{% if not me.major %}
<h3><em><a href="{% url 'updateStudent' request.user.username %}">Set your major</a>, and we'll show you some of the other students in your program.</em></h3>
{% else %}
......
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