fix hooks and missing artifacts

This commit is contained in:
jr-k 2024-03-01 13:01:05 +01:00
parent fc3f634d64
commit 692d1d7f04
3 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,2 @@
<link rel="stylesheet" href="{{ STATIC_PREFIX }}css/main.css" />
{{ STATIC_PREFIX }}
<button class="normal sysinfo-restart"><i class="fa fa-refresh icon-left"></i>{{ l.fleetmode_screen_restart_button_restart }}</button> <button class="normal sysinfo-restart"><i class="fa fa-refresh icon-left"></i>{{ l.fleetmode_screen_restart_button_restart }}</button>

View File

@ -90,5 +90,5 @@ class ObPlugin(abc.ABC):
request=request, request=request,
url_for=url_for, url_for=url_for,
**parameters, **parameters,
**self._template_renderer.get_view_globals() **self._template_renderer.get_view_globals(),
) )

View File

@ -35,7 +35,7 @@ class TemplateRenderer:
content = [] content = []
for hook_registration in hooks_registrations: for hook_registration in hooks_registrations:
template = hook_registration.plugin.get_rendering_env().get_template("{}/{}".format( template = hook_registration.plugin.get_rendering_env().get_template("@{}/{}".format(
WebDirConstant.FOLDER_PLUGIN_HOOK, WebDirConstant.FOLDER_PLUGIN_HOOK,
os.path.basename(hook_registration.template) os.path.basename(hook_registration.template)
)) ))