From f9b64cad3272a20eb080ec8aae3853badea095c6 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 4 Oct 2013 16:31:17 +0300 Subject: [PATCH] Add display_name to lti template --- common/lib/xmodule/xmodule/lti_module.py | 3 ++- lms/templates/lti.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/lti_module.py b/common/lib/xmodule/xmodule/lti_module.py index dfc24e8808..6c442ae725 100644 --- a/common/lib/xmodule/xmodule/lti_module.py +++ b/common/lib/xmodule/xmodule/lti_module.py @@ -179,7 +179,8 @@ class LTIModule(LTIFields, XModule): 'launch_url': self.launch_url, 'element_id': self.location.html_id(), 'element_class': self.category, - 'open_in_a_new_page': self.open_in_a_new_page + 'open_in_a_new_page': self.open_in_a_new_page, + 'display_name': self.display_name, } return self.system.render_template('lti.html', context) diff --git a/lms/templates/lti.html b/lms/templates/lti.html index 669f1e22cf..b1f1b2a220 100644 --- a/lms/templates/lti.html +++ b/lms/templates/lti.html @@ -34,7 +34,7 @@ % if open_in_a_new_page:

- [LTI Display Name] (External resource) + ${display_name} (External resource)