fix: refactor MakoService to allow specifying template more explicitly (Take 2) (#33077)

* fix: refactor MakoService to allow specifying namespace per template (#33061)

* fix: instr. dashboard broken by bulk email reusing HtmlBlock studio_view

* fix: lint issue from unused import
This commit is contained in:
Braden MacDonald
2023-08-23 11:48:06 -07:00
committed by GitHub
parent d83d769c6f
commit f491f5bde8
26 changed files with 134 additions and 83 deletions

View File

@@ -60,7 +60,7 @@ class ErrorBlock(
"""
Return a fragment that contains the html for the student view.
"""
fragment = Fragment(self.runtime.service(self, 'mako').render_template('module-error.html', {
fragment = Fragment(self.runtime.service(self, 'mako').render_lms_template('module-error.html', {
'staff_access': True,
'data': self.contents,
'error': self.error_msg,