From 4e9e11e4c03966b8933c3b7d1a741b88dc4aab13 Mon Sep 17 00:00:00 2001 From: Carol Tong Date: Wed, 18 Mar 2015 12:07:11 -0400 Subject: [PATCH] Add Help links and targets for import/export libraries --- cms/templates/export.html | 9 ++++++++- cms/templates/import.html | 15 ++++++++++++++- docs/config.ini | 6 ++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/cms/templates/export.html b/cms/templates/export.html index 5b924749b7..f8534f73d2 100644 --- a/cms/templates/export.html +++ b/cms/templates/export.html @@ -1,5 +1,12 @@ <%inherit file="base.html" /> -<%def name="online_help_token()"><% return "export" %> +<%def name="online_help_token()"> +<% +if library: + return "export_library" +else: + return "export_course" +%> + <%namespace name='static' file='static_content.html'/> <%! diff --git a/cms/templates/import.html b/cms/templates/import.html index 4d445948e5..b7a356461c 100644 --- a/cms/templates/import.html +++ b/cms/templates/import.html @@ -1,5 +1,12 @@ <%inherit file="base.html" /> -<%def name="online_help_token()"><% return "import" %> +<%def name="online_help_token()"> +<% +if library: + return "import_library" +else: + return "import_course" +%> + <%namespace name='static' file='static_content.html'/> <%! from django.utils.translation import ugettext as _ @@ -198,6 +205,9 @@

${_("Note: Library content is not automatically updated in courses")}

${_("If you change and import a library that is referenced by randomized content blocks in one or more courses, those courses do not automatically use the updated content. You must manually refresh the randomized content blocks to bring them up to date with the latest library content.")}

+
+ ${_("Learn more about importing a library")} +
%else: %endif diff --git a/docs/config.ini b/docs/config.ini index 7b95652251..fdab8ef560 100644 --- a/docs/config.ini +++ b/docs/config.ini @@ -27,8 +27,10 @@ grading = building_course/establish_grading_policy.html team = building_course/creating_new_course.html#add-course-team-members advanced = index.html checklist = building_course/creating_new_course.html#use-the-course-checklist -import = building_course/export_import_course.html#import-a-course -export = building_course/export_import_course.html#export-a-course +import_library = creating_content/libraries.html#import-a-library +import_course = building_course/export_import_course.html#import-a-course +export_library = creating_content/libraries.html#export-a-library +export_course = building_course/export_import_course.html#export-a-course welcome = getting_started/get_started.html login = getting_started/get_started.html register = getting_started/get_started.html