Exemplo n.º 1
0
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     _context.update({
         'tabs': self.tabs,
         'html_id': self.location.html_id(),  # element_id
         'data': self.data,
     })
     return _context
Exemplo n.º 2
0
 def studio_view(self, _context):
     """
     Return the studio view.
     """
     context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     context.update({'data': self.data})
     fragment = Fragment(
         self.system.render_template(self.mako_template, context))
     add_webpack_to_fragment(fragment, 'LTIBlockStudio')
     shim_xmodule_js(fragment, self.studio_js_module_name)
     return fragment
Exemplo n.º 3
0
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     _context.update({'data': self.data})
     return _context
Exemplo n.º 4
0
 def get_context(self):
     _context = MakoTemplateBlockBase.get_context(self)
     # Add our specific template information (the raw data body)
     _context.update({'data': self.data})
     return _context