Fixes in menu lighting
This commit is contained in:
parent
d20296f0df
commit
ec324087db
2 changed files with 4 additions and 4 deletions
|
|
@ -160,7 +160,7 @@ def home(module='', submodule='', t=t):
|
||||||
title_module=content_index[0]
|
title_module=content_index[0]
|
||||||
content_index=content_index[1]
|
content_index=content_index[1]
|
||||||
connection.close()
|
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:
|
else:
|
||||||
|
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
@ -170,7 +170,7 @@ def home(module='', submodule='', t=t):
|
||||||
else:
|
else:
|
||||||
connection.close()
|
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()
|
connection.close()
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ ${HeaderHTML.header_home()|n}
|
||||||
% for module in menu:
|
% for module in menu:
|
||||||
% if type(menu[module]).__name__=='list':
|
% if type(menu[module]).__name__=='list':
|
||||||
% if menu[module][0]!="":
|
% if menu[module][0]!="":
|
||||||
<li><a href="${check_menu(module).strip()|n}">${menu[module][3]|n}${menu[module][0]}</a></li>
|
<li><a href="${check_menu(module).strip()|n}" class="${'selected_menu' if module==module_name else ''}">${menu[module][3]|n}${menu[module][0]}</a></li>
|
||||||
% endif
|
% endif
|
||||||
% else:
|
% else:
|
||||||
% if menu[module]!="":
|
% if menu[module]!="":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue