From ec324087db084d5cc35e43ff0f20d647422992af Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 2 Oct 2024 19:52:54 +0200 Subject: [PATCH] Fixes in menu lighting --- paramecio/modules/admin/index.py | 6 +++--- paramecio/modules/admin/templates/admin/home.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paramecio/modules/admin/index.py b/paramecio/modules/admin/index.py index a462c6b..4b89bb2 100644 --- a/paramecio/modules/admin/index.py +++ b/paramecio/modules/admin/index.py @@ -151,7 +151,7 @@ def home(module='', submodule='', t=t): #args={'t': t, 'connection': connection} content_index=module_imported[module].admin(t=t, connection=connection) - + if t.show_basic_template==True: title_module=menu[module][0] @@ -160,7 +160,7 @@ def home(module='', submodule='', t=t): title_module=content_index[0] content_index=content_index[1] connection.close() - return t.load_template('admin/content.html', title=title_module, content_index=content_index, menu=menu, lang_selected=lang_selected, arr_i18n=I18n.dict_i18n) + return t.load_template('admin/content.html', title=title_module, content_index=content_index, menu=menu, lang_selected=lang_selected, arr_i18n=I18n.dict_i18n, module_name=module) else: connection.close() @@ -170,7 +170,7 @@ def home(module='', submodule='', t=t): else: connection.close() - return t.load_template('admin/index.html', title=I18n.lang('admin', 'welcome_to_paramecio', 'Welcome to Paramecio Admin!!!'), menu=menu, lang_selected=lang_selected, arr_i18n=I18n.dict_i18n) + return t.load_template('admin/index.html', title=I18n.lang('admin', 'welcome_to_paramecio', 'Welcome to Paramecio Admin!!!'), menu=menu, lang_selected=lang_selected, arr_i18n=I18n.dict_i18n, module_name='home') connection.close() return "" diff --git a/paramecio/modules/admin/templates/admin/home.html b/paramecio/modules/admin/templates/admin/home.html index dd69e54..a5d705d 100644 --- a/paramecio/modules/admin/templates/admin/home.html +++ b/paramecio/modules/admin/templates/admin/home.html @@ -74,7 +74,7 @@ ${HeaderHTML.header_home()|n} % for module in menu: % if type(menu[module]).__name__=='list': % if menu[module][0]!="": -
  • ${menu[module][3]|n}${menu[module][0]}
  • +
  • ${menu[module][3]|n}${menu[module][0]}
  • % endif % else: % if menu[module]!="":