mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix custom plugins page
*fix indentation that lead to error while showing custom plugin with global context
This commit is contained in:
parent
2dfb49fcfc
commit
e9d36fe08d
1 changed files with 9 additions and 9 deletions
|
|
@ -1389,15 +1389,15 @@ def custom_plugin(plugin: str):
|
|||
is_used = True
|
||||
break
|
||||
|
||||
return render_template(
|
||||
Environment(loader=FileSystemLoader(join(sep, "usr", "share", "bunkerweb", "ui", "templates") + "/")).from_string(page.decode("utf-8")),
|
||||
username=current_user.get_id(),
|
||||
current_endpoint=plugin,
|
||||
plugin=curr_plugin,
|
||||
is_used=is_used,
|
||||
is_metrics=is_metrics_on,
|
||||
**app.jinja_env.globals,
|
||||
)
|
||||
return render_template(
|
||||
Environment(loader=FileSystemLoader(join(sep, "usr", "share", "bunkerweb", "ui", "templates") + "/")).from_string(page.decode("utf-8")),
|
||||
username=current_user.get_id(),
|
||||
current_endpoint=plugin,
|
||||
plugin=curr_plugin,
|
||||
is_used=is_used,
|
||||
is_metrics=is_metrics_on,
|
||||
**app.jinja_env.globals,
|
||||
)
|
||||
|
||||
module = db.get_plugin_actions(plugin)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue