Add an 'edit' link to the program menu
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 28 Jan 2009 15:22:34 +0000
changeset 1036 b4e275e97c60
parent 1035 04229d710ce9
child 1037 f706ac5beccf
Add an 'edit' link to the program menu Patch by: Sverre Rabbelier
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Wed Jan 28 14:18:31 2009 +0000
+++ b/app/soc/views/models/program.py	Wed Jan 28 15:22:34 2009 +0000
@@ -140,6 +140,7 @@
       menu = {}
       menu['heading'] = entity.short_name
       items = document_view.view.getMenusForScope(entity, params)
+      items += [(redirects.getEditRedirect(entity, params),'Edit','edit')]
       menu['items'] = sidebar.getSidebarMenu(id, user, items, params=doc_params)
       menu['group'] = 'Programs'
       menus.append(menu)