Added index.py
This commit is contained in:
parent
5330de9d5c
commit
b2932516ba
2 changed files with 10 additions and 7 deletions
|
|
@ -75,14 +75,17 @@ def home(module='', submodule=''):
|
|||
|
||||
menu=OrderedDict()
|
||||
|
||||
for key, mod in config_admin.modules_admin.items():
|
||||
if type(mod[1]).__name__!='dict':
|
||||
menu[key]=mod
|
||||
#modules_admin.append([I18n.lang('panel', 'servers_config', 'Server\'s configuration'), [I18n.lang('panel', 'servers_types', 'Server\'s types'), 'modules.panel.admin.types'], 'servers_config'])
|
||||
|
||||
for mod in config_admin.modules_admin:
|
||||
if type(mod[1]).__name__!='list':
|
||||
menu[mod[2]]=mod
|
||||
else:
|
||||
menu[key]=mod[0]
|
||||
print(mod)
|
||||
menu[mod[2]]=mod[0]
|
||||
|
||||
for subkey, submod in mod[1].items():
|
||||
menu[subkey]=submod
|
||||
for submod in mod[1]:
|
||||
menu[submod[2]]=submod
|
||||
#pass
|
||||
|
||||
if module in menu:
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ ${HeaderHTML.header_home()|n}
|
|||
<div class="content_admin">
|
||||
<div id="menu">
|
||||
<div class="menu_title">${lang('admin', 'applications', 'Applications')}</div>
|
||||
% for module in sorted(menu):
|
||||
% for module in menu:
|
||||
% if type(menu[module]).__name__=='list':
|
||||
<a href="${make_url('admin/'+module)}">${menu[module][0]}</a>
|
||||
% else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue