fixed sections titles (<h1>) which were no more displayed

This commit is contained in:
Damien Laniel 2009-02-26 16:16:33 +00:00
parent 973f4434ac
commit c45ada5437
2 changed files with 16 additions and 16 deletions

View File

@ -45,15 +45,15 @@ class RootDirectory(AccessControlled, Directory):
bounces = bounces.BouncesDirectory()
menu_items = [
('forms/', N_('Forms')),
('workflows/', N_('Workflows')),
('users/', N_('Users')),
('roles/', N_('Roles')),
('categories/', N_('Categories')),
('logger/', N_('Logs')),
('bounces/', N_('Bounces')),
('settings/', N_('Settings')),
('/', N_('WCS Form Server'))]
('forms', N_('Forms')),
('workflows', N_('Workflows')),
('users', N_('Users')),
('roles', N_('Roles')),
('categories', N_('Categories')),
('logger', N_('Logs')),
('bounces', N_('Bounces')),
('settings', N_('Settings')),
('', N_('WCS Form Server'))]
def _q_access(self):
get_response().breadcrumb.append( ('admin/', _('Administration')) )
@ -78,7 +78,7 @@ class RootDirectory(AccessControlled, Directory):
def _q_index [html] (self):
from menu import html_top
html_top('/')
html_top('')
'<p>'
_('''
w.c.s. is a web application which allows to design and set up online forms.

View File

@ -11,19 +11,19 @@ def generate_header_menu(selected = None):
show_bounces = (get_cfg('emails', {}).get('bounce_handler') == True and Bounce.count() > 0)
for k, v in get_publisher().get_admin_root().menu_items:
if k == '/':
if k == '':
continue # skip root
if k == 'logger/' and not show_logger:
if k == 'logger' and not show_logger:
continue
if k == 'debug/' and not show_debug:
if k == 'debug' and not show_debug:
continue
if k == 'bounces/' and not show_bounces:
if k == 'bounces' and not show_bounces:
continue
if k.rstrip('/') == selected:
if k == selected:
s.append('<li class="active">')
else:
s.append('<li>')
s.append('<a href="%s/%s">%s</a></li>\n' % (base_url, k, _(v)))
s.append('<a href="%s/%s/">%s</a></li>\n' % (base_url, k, _(v)))
s.append('</ul>\n')
return ''.join(s)