From eb7611286cb4a6c44e2d5e39e36e1e50a81823ca Mon Sep 17 00:00:00 2001 From: Stephen Sanchez Date: Tue, 23 Sep 2014 13:41:51 +0000 Subject: [PATCH] Making the django main template navigation course aware. --- lms/templates/main_django.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lms/templates/main_django.html b/lms/templates/main_django.html index bc47156e58..dd19587be9 100644 --- a/lms/templates/main_django.html +++ b/lms/templates/main_django.html @@ -31,11 +31,13 @@ {% trans "Skip to this view's content" %} - {% if ENABLE_NEW_EDX_HEADER %} - {% include "navigation.html" %} - {% else %} - {% include "original_navigation.html" %} - {% endif %} + {% with course=request.course %} + {% if ENABLE_NEW_EDX_HEADER %} + {% include "navigation.html" %} + {% else %} + {% include "original_navigation.html" %} + {% endif %} + {% endwith %}
{% block body %}{% endblock %} {% block bodyextra %}{% endblock %}