Commit 6df10518 by Bridger Maxwell

More template cleanup. Moved navigation, footer, etc to templates/frame.

parent 27c431a6
......@@ -635,7 +635,7 @@ def confirm_email_change(request, key):
try:
pec = PendingEmailChange.objects.get(activation_key=key)
except PendingEmailChange.DoesNotExist:
return render_to_response("invalid_email_key.html", {})
return render_to_response("portal/invalid_email_key.html", {})
user = pec.user
d = {'old_email': user.email,
......
## mako
<%! from django.core.urlresolvers import reverse %>
<%namespace name='static' file='static_content.html'/>
<%namespace name='static' file='../static_content.html'/>
<footer>
<nav>
......
<%! from django.core.urlresolvers import reverse %>
<%namespace name='static' file='static_content.html'/>
<%namespace name='static' file='../static_content.html'/>
<section id="login-modal" class="modal login-modal">
<div class="inner-wrapper">
......
......@@ -2,7 +2,7 @@
## TODO: Split this into two files, one for people who are authenticated, and
## one for people who aren't. Assume a Course object is passed to the former,
## instead of using settings.COURSE_TITLE
<%namespace name='static' file='static_content.html'/>
<%namespace name='static' file='../static_content.html'/>
<%!
from django.core.urlresolvers import reverse
......
<%namespace name='static' file='static_content.html'/>
<%namespace name='static' file='../static_content.html'/>
<%! from django.core.urlresolvers import reverse %>
<%! from django_countries.countries import COUNTRIES %>
<%! from student.models import UserProfile %>
......
......@@ -39,13 +39,13 @@
<body class="<%block name='bodyclass'/>">
<%include file="navigation.html" />
<%include file="frame/navigation.html" />
<section class="content-wrapper">
${self.body()}
<%block name="bodyextra"/>
</section>
<%include file="footer.html" />
<%include file="frame/footer.html" />
<%static:js group='application'/>
<%static:js group='module-js'/>
......
......@@ -23,13 +23,13 @@
</head>
<body class="{% block bodyclass %}{% endblock %}">
{% include "navigation.html" %}
{% include "frame/navigation.html" %}
<section class="content-wrapper">
{% block body %}{% endblock %}
{% block bodyextra %}{% endblock %}
</section>
{% include "footer.html" %}
{% include "frame/footer.html" %}
{% compressed_js 'application' %}
{% compressed_js 'module-js' %}
......
......@@ -190,4 +190,4 @@
%endif
<%include file="../video_modal.html" />
<%include file="portal/video_modal.html" />
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