From 227271fec62331dcce730e40c7cc725f3bc676ad Mon Sep 17 00:00:00 2001
From: Nate Hardison
Date: Fri, 31 May 2013 19:12:02 -0700
Subject: [PATCH] Theme the courseware dashboard
Again, most of the work here is replacing "edX" with the
`PLATFORM_NAME` setting. Need to ensure that the `news` boolean is
indeed a falsy value as well, or just add a `theme_enabled()` test
to disable the news block entirely (since news is an edX-specific
feature).
---
lms/templates/dashboard.html | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html
index 75c0cafabd..bb69c6798c 100644
--- a/lms/templates/dashboard.html
+++ b/lms/templates/dashboard.html
@@ -150,6 +150,8 @@
+ ## `news` should be `None` whenever a non-edX theme is enabled:
+ ## see common/djangoapps/student/views.py#_get_news
%if news:
@@ -292,7 +294,13 @@
${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}.
% elif cert_status['status'] == 'restricted':
- Your certificate is being held pending confirmation that the issuance of your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting info@edx.org.
+ <%
+ if self.stanford_theme_enabled():
+ contact_email = "contact@class.stanford.edu"
+ else:
+ contact_email = "info@edx.org"
+ %>
+ Your certificate is being held pending confirmation that the issuance of your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting ${contact_email}.
% endif
@@ -449,11 +457,11 @@