From 7f4bb63dff596ebd8ded0afa48a31c03196cc17c Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Mon, 5 Nov 2012 13:55:09 -0500 Subject: [PATCH] Final ie8 fixes hopefully. Now renders correctly for staff. Moved the debug fns from per problem to part of courseware w/ context info passed as parms. Known issues: ie8 complains that getlog is not defined if you click on QA and does not show the debug info popup. --- lms/djangoapps/courseware/views.py | 1 + lms/templates/courseware/courseware.html | 4 +- lms/templates/courseware/xqa_interface.html | 73 ++++++++++++++++ lms/templates/staff_problem_info.html | 94 +++++---------------- 4 files changed, 99 insertions(+), 73 deletions(-) create mode 100644 lms/templates/courseware/xqa_interface.html diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index 58bd6924af..d8def76473 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -217,6 +217,7 @@ def index(request, course_id, chapter=None, section=None, 'init': '', 'content': '', 'staff_access': staff_access, + 'xqa_server': settings.MITX_FEATURES.get('USE_XQA_SERVER','http://xqa:server@content-qa.mitx.mit.edu/xqa') } chapter_descriptor = course.get_child_by_url_name(chapter) diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index 62af7d6f82..1ea3df1b5a 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -25,7 +25,9 @@ <%static:js group='discussion'/> <%include file="../discussion/_js_body_dependencies.html" /> - + % if staff_access: + <%include file="xqa_interface.html"/> + % endif + \ No newline at end of file diff --git a/lms/templates/staff_problem_info.html b/lms/templates/staff_problem_info.html index 9d51a119c6..0f1893ee4f 100644 --- a/lms/templates/staff_problem_info.html +++ b/lms/templates/staff_problem_info.html @@ -1,6 +1,14 @@ ${module_content} %if edit_link: -
Edit / QA
+
+ Edit / + QA +
% endif
Staff Debug Info
@@ -50,77 +58,19 @@ category = ${category | h}
-## leanModal needs to be included here otherwise this breaks when in a - -