Add display_name to lti template

This commit is contained in:
Alexander Kryklia
2013-10-04 16:31:17 +03:00
committed by polesye
parent 1fe33a0f11
commit f9b64cad32
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -34,7 +34,7 @@
% if open_in_a_new_page:
<p>
<span class="description">
[LTI Display Name] (External resource)
${display_name} (External resource)
</span>
<a href="#" class='link_lti_new_window'>
<i class="icon-external-link"></i>