modern #2
2 changed files with 4 additions and 4 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ ${HeaderHTML.header_home()|n}
|
|||
% for module in menu:
|
||||
% if type(menu[module]).__name__=='list':
|
||||
% 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
|
||||
% else:
|
||||
% if menu[module]!="":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue