From 34568e5bb0695f15aea4d6d9a34064bad4fd0a76 Mon Sep 17 00:00:00 2001 From: Ernie Park Date: Thu, 2 Feb 2012 18:50:58 -0500 Subject: [PATCH] update navigation and templates to include a class for nav so we can select currently active nav item --- courseware.html | 2 +- info.html | 2 +- navigation.html | 15 ++++++++------- profile.html | 2 +- simplewiki_base.html | 2 +- staticbook.html | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/courseware.html b/courseware.html index 99444c5077..4b3a1291e3 100644 --- a/courseware.html +++ b/courseware.html @@ -23,7 +23,7 @@ }); -<%include file="navigation.html" /> +<%include file="navigation.html" args="active_page='courseware'" />
diff --git a/info.html b/info.html index 5867feb021..f6f59462b4 100644 --- a/info.html +++ b/info.html @@ -1,6 +1,6 @@ <%inherit file="main.html" /> -<%include file="navigation.html" /> +<%include file="navigation.html" args="active_page='info'" />
diff --git a/navigation.html b/navigation.html index 278a560af9..b639dc5b28 100644 --- a/navigation.html +++ b/navigation.html @@ -1,17 +1,18 @@ +<%page args="active_page" />

MITx

-
diff --git a/profile.html b/profile.html index 689bffaa38..7ba5dd6d8c 100644 --- a/profile.html +++ b/profile.html @@ -62,7 +62,7 @@ $(function() { -<%include file="navigation.html" /> +<%include file="navigation.html" args="active_page='profile'" />
diff --git a/simplewiki_base.html b/simplewiki_base.html index f73c63218e..731f5be8d9 100644 --- a/simplewiki_base.html +++ b/simplewiki_base.html @@ -73,7 +73,7 @@ <%block name="wiki_head"/> -<%include file="navigation.html" /> +<%include file="navigation.html" args="active_page='wiki'" />
diff --git a/staticbook.html b/staticbook.html index 46348a1441..a9afbede22 100644 --- a/staticbook.html +++ b/staticbook.html @@ -34,7 +34,7 @@ function next_page() { } -<%include file="navigation.html" /> +<%include file="navigation.html" args="active_page='book'" />