Added new setting: side bar search box

This commit is contained in:
Roberto Rosario
2011-03-10 01:54:31 -04:00
parent ed5578832f
commit 6bef320142
16 changed files with 157 additions and 22 deletions

View File

@@ -7,12 +7,12 @@ from permissions import role_list
from documents import document_find_all_duplicates
from filesystem_serving import filesystem_serving_recreate_all_links
from main.conf.settings import SIDE_BAR_SEARCH
check_settings = {'text':_(u'settings'), 'view':'check_settings', 'famfam':'cog'}
register_menu([
main_menu = [
{'text':_(u'home'), 'view':'home', 'famfam':'house', 'position':0},
{'text':_(u'tools'), 'view':'tools_menu', 'links': [
document_find_all_duplicates, filesystem_serving_recreate_all_links
],'famfam':'wrench', 'name':'tools','position':7},
@@ -22,4 +22,10 @@ register_menu([
],'famfam':'cog', 'name':'setup','position':8},
{'text':_(u'about'), 'view':'about', 'position':9},
])
]
if not SIDE_BAR_SEARCH:
main_menu.insert(1, {'text':_(u'search'), 'view':'search', 'famfam':'zoom', 'position':2})
register_menu(main_menu)