From dc8bd32fb267442be2f51962f03ec9b2d0ec5dc0 Mon Sep 17 00:00:00 2001 From: Nate Hardison Date: Fri, 31 May 2013 19:15:09 -0700 Subject: [PATCH] Theme the individual course about pages Use the theme's own Google Analytics template (should probably update to just use parameters once the default GA template is kept up-to-date). Don't link to the university profile page when a theme is enabled, as that's an edX-specific feature. Adjust social links for Stanford, but leave them alone for everyone else (this is just a hack for the 6/11/13 launch). --- lms/templates/courseware/course_about.html | 41 ++++++++++++++++------ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index 941bf61698..cc4b2ec317 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -8,7 +8,11 @@ <%inherit file="../main.html" /> <%block name="headextra"> - <%include file="../google_analytics.html" /> + % if self.theme_enabled(): + <%include file="../theme-google-analytics.html" /> + % else: + <%include file="../google_analytics.html" /> + % endif <%block name="js_extra"> @@ -46,7 +50,12 @@
-

${course.number}: ${get_course_about_section(course, "title")}${get_course_about_section(course, "university")}

+

+ ${course.number}: ${get_course_about_section(course, "title")} + % if not self.theme_enabled(): + ${get_course_about_section(course, "university")} + % endif +

@@ -105,14 +114,26 @@