app/soc/views/models/site.py
changeset 1144 f89bbc9b20a6
parent 1115 0a723ff3d27c
child 1240 a94c9bcfa05d
equal deleted inserted replaced
1143:b07b7d5b3e27 1144:f89bbc9b20a6
   101 
   101 
   102     if entity:
   102     if entity:
   103       submenus += document_view.view.getMenusForScope(entity, self._params)
   103       submenus += document_view.view.getMenusForScope(entity, self._params)
   104       if accounts.isDeveloper(id, user):
   104       if accounts.isDeveloper(id, user):
   105         submenus += [(redirects.getCreateDocumentRedirect(entity, 'site'),
   105         submenus += [(redirects.getCreateDocumentRedirect(entity, 'site'),
   106             "Create new document", 'any_access')]
   106             "Create a New Document", 'any_access')]
   107 
   107 
   108     new_params = {}
   108     new_params = {}
   109     new_params['sidebar_additional'] = submenus
   109     new_params['sidebar_additional'] = submenus
   110 
   110 
   111     params = dicts.merge(params, new_params)
   111     params = dicts.merge(params, new_params)