|
@@ -9,6 +9,7 @@ import leapi_dyncode
|
9
|
9
|
from .api import api_lodel_templates
|
10
|
10
|
from .exceptions.not_allowed_custom_api_key_error import NotAllowedCustomAPIKeyError
|
11
|
11
|
from ...main import root_url as root_url
|
|
12
|
+from ...main import root_url as root_url
|
12
|
13
|
from ...main import PLUGIN_PATH
|
13
|
14
|
TEMPLATE_PATH = os.path.realpath(os.path.join(PLUGIN_PATH, 'templates/'))
|
14
|
15
|
|
|
@@ -46,6 +47,7 @@ class TemplateLoader(object):
|
46
|
47
|
template.globals['settings'] = Settings
|
47
|
48
|
template.globals['client'] = WebUiClient
|
48
|
49
|
template.globals['root_url'] = root_url()
|
|
50
|
+ template.globals['static_url'] = static_url()
|
49
|
51
|
template.globals['url'] = lambda sufix='': root_url()\
|
50
|
52
|
+ ('' if sufix.startswith('/') else '/')\
|
51
|
53
|
+ sufix
|