From 0936f448fc97acfdc1e73b30e942e26c86c37c3d Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 5 Feb 2013 13:26:49 +0000 Subject: [PATCH 1/2] add disable_progress_graph key to course metadata --- lms/templates/courseware/progress.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html index fb163d112d..9b52ff2069 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -32,7 +32,9 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph",

Course Progress

-
+ %if not course.metadata.get('disable_progress_graph',False): +
+ %endif
    %for chapter in courseware_summary: From 6a7e30e3318bd91d25db9801c71ea8013923ca4e Mon Sep 17 00:00:00 2001 From: ichuang Date: Wed, 6 Feb 2013 04:01:28 +0000 Subject: [PATCH 2/2] add doc about disable_progress_graph --- doc/xml-format.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/xml-format.md b/doc/xml-format.md index b93f3bbeab..c59db690a1 100644 --- a/doc/xml-format.md +++ b/doc/xml-format.md @@ -268,6 +268,7 @@ Supported fields at the course level: * "start" -- specify the start date for the course. Format-by-example: "2012-09-05T12:00". * "advertised_start" -- specify what you want displayed as the start date of the course in the course listing and course about pages. This can be useful if you want to let people in early before the formal start. Format-by-example: "2012-09-05T12:00". +* "disable_policy_graph" -- set to true (or "Yes"), if the policy graph should be disabled (ie not shown). * "enrollment_start", "enrollment_end" -- when can students enroll? (if not specified, can enroll anytime). Same format as "start". * "end" -- specify the end date for the course. Format-by-example: "2012-11-05T12:00". * "end_of_course_survey_url" -- a url for an end of course survey -- shown after course is over, next to certificate download links.