diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-29 17:05:00 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 12:54:54 +0200 |
commit | 2363ab8054ab5d8e7981242dc311a394e8d5ff57 (patch) | |
tree | d02a2fca005a241f42331d8bb08aeb0933c898a7 /src/hydrilla/proxy/web_ui/root.py | |
parent | 7fc6312d6df526b8eb49288aecf88d04668e7c45 (diff) | |
download | haketilo-hydrilla-2363ab8054ab5d8e7981242dc311a394e8d5ff57.tar.gz haketilo-hydrilla-2363ab8054ab5d8e7981242dc311a394e8d5ff57.zip |
[proxy] refactor we UI library and package pages templates to avoid code repetition
Diffstat (limited to 'src/hydrilla/proxy/web_ui/root.py')
-rw-r--r-- | src/hydrilla/proxy/web_ui/root.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/root.py b/src/hydrilla/proxy/web_ui/root.py index ab4e09b..b199506 100644 --- a/src/hydrilla/proxy/web_ui/root.py +++ b/src/hydrilla/proxy/web_ui/root.py @@ -41,7 +41,7 @@ import flask import werkzeug from ...translations import translation as make_translation -from ... import versions +from ... import item_infos from .. import state as st from .. import http_messages from . import repos @@ -82,11 +82,11 @@ class WebUIAppImpl(_app.WebUIApp): ] } - self.jinja_env.globals['versions'] = versions self.jinja_env.globals['get_current_endpoint'] = get_current_endpoint self.jinja_env.globals['EnabledStatus'] = st.EnabledStatus self.jinja_env.globals['InstalledStatus'] = st.InstalledStatus self.jinja_env.globals['ActiveStatus'] = st.ActiveStatus + self.jinja_env.globals['ItemType'] = item_infos.ItemType self.before_request(authenticate_by_referrer) |