Skip to content

Commit

Permalink
Fix i18n missing var for templates_controller (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazitouni authored and manisandro committed Jan 16, 2024
1 parent 21020a7 commit 73fd5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/themes/controllers/templates_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def info_template(self):

return render_template(
'%s/info_template.html' % self.template_dir, title=i18n('plugins.themes.info_templates.create_title'),
form=form
form=form, i18n=i18n
)

def info_templates(self):
Expand All @@ -75,7 +75,7 @@ def info_templates(self):
items.append(item)

return render_template(
'%s/info_templates.html' % self.template_dir, title=i18n('plugins.themes.info_templates.title'), items=items
'%s/info_templates.html' % self.template_dir, title=i18n('plugins.themes.info_templates.title'), items=items, i18n=i18n
)

def create_or_update_info_templates(self, info_template, tid=None, gid=None):
Expand Down Expand Up @@ -174,7 +174,7 @@ def edit_info_template(self, gid, tid):

return render_template(
'%s/info_template.html' % self.template_dir, title=i18n('plugins.themes.info_templates.edit_title'), is_disabled = True,
form=form
form=form, i18n=i18n
)
except Exception :
abort(404)
Expand Down

0 comments on commit 73fd5bd

Please sign in to comment.