diff --git a/lms/templates/course_navigation.html b/lms/templates/course_navigation.html new file mode 100644 index 0000000000..a214e498f0 --- /dev/null +++ b/lms/templates/course_navigation.html @@ -0,0 +1,25 @@ +<%page args="active_page" /> + +<% +def url_class(url): + if url == active_page: + return "active" + return "" +%> + + diff --git a/lms/templates/index.html b/lms/templates/index.html index 1c45f35b9a..97bfd6328d 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -1,5 +1,4 @@ <%inherit file="main.html" /> -<%include file="guest_navigation.html" args="active_page='info'" />
diff --git a/lms/templates/main.html b/lms/templates/main.html index 4a4c25f518..d9b7cd56dc 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -56,6 +56,7 @@ + <%include file="navigation.html" /> @@ -63,6 +64,7 @@ ${self.body()} <%block name="bodyextra"/> <%block name="js_extra"/> + diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index 63f9eaa28d..de190e0a88 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -1,17 +1,12 @@ -<%page args="active_page" /> - <%namespace name='static' file='static_content.html'/> -<%block name="js_extra"> - -
- -<% -def url_class(url): - if url == active_page: - return "active" - return "" -%> - -