app/soc/views/models/organization.py
changeset 1463 d25793debbfb
parent 1436 b356b2d7653c
child 1489 e12e08c8b258
equal deleted inserted replaced
1462:8686c7223028 1463:d25793debbfb
   200           "Manage Admins and Mentors", 'any_access')
   200           "Manage Admins and Mentors", 'any_access')
   201       submenus.append(submenu)
   201       submenus.append(submenu)
   202 
   202 
   203       # add a link to invite an org admin
   203       # add a link to invite an org admin
   204       submenu = (redirects.getInviteRedirectForRole(group_entity, 'org_admin'),
   204       submenu = (redirects.getInviteRedirectForRole(group_entity, 'org_admin'),
   205           "Invite an Org Admin", 'any_access')
   205           "Invite an Admin", 'any_access')
   206       submenus.append(submenu)
   206       submenus.append(submenu)
   207 
   207 
   208       # add a link to invite a member
   208       # add a link to invite a member
   209       submenu = (redirects.getInviteRedirectForRole(group_entity, 'mentor'),
   209       submenu = (redirects.getInviteRedirectForRole(group_entity, 'mentor'),
   210           "Invite a Mentor", 'any_access')
   210           "Invite a Mentor", 'any_access')
   231 
   231 
   232     if roles.get('org_admin'):
   232     if roles.get('org_admin'):
   233       # add a link to the resign page
   233       # add a link to the resign page
   234       submenu = (redirects.getManageRedirect(roles['org_admin'], 
   234       submenu = (redirects.getManageRedirect(roles['org_admin'], 
   235           {'url_name': 'org_admin'}), 
   235           {'url_name': 'org_admin'}), 
   236           "Resign as Org Admin", 'any_access')
   236           "Resign as Admin", 'any_access')
   237       submenus.append(submenu)
   237       submenus.append(submenu)
   238 
   238 
   239       # add a link to the edit page
   239       # add a link to the edit page
   240       submenu = (redirects.getEditRedirect(roles['org_admin'],
   240       submenu = (redirects.getEditRedirect(roles['org_admin'],
   241           {'url_name': 'org_admin'}),
   241           {'url_name': 'org_admin'}),
   242           "Edit My Org Admin Profile", 'any_access')
   242           "Edit My Admin Profile", 'any_access')
   243       submenus.append(submenu)
   243       submenus.append(submenu)
   244 
   244 
   245     if roles.get('mentor'):
   245     if roles.get('mentor'):
   246       # add a link to the resign page
   246       # add a link to the resign page
   247       submenu = (redirects.getManageRedirect(roles['mentor'], 
   247       submenu = (redirects.getManageRedirect(roles['mentor'], 
   250       submenus.append(submenu)
   250       submenus.append(submenu)
   251 
   251 
   252       # add a link to the edit page
   252       # add a link to the edit page
   253       submenu = (redirects.getEditRedirect(roles['mentor'],
   253       submenu = (redirects.getEditRedirect(roles['mentor'],
   254           {'url_name': 'mentor'}),
   254           {'url_name': 'mentor'}),
   255           "Edit My Org Mentor Profile", 'any_access')
   255           "Edit My Mentor Profile", 'any_access')
   256       submenus.append(submenu)
   256       submenus.append(submenu)
   257 
   257 
   258     return submenus
   258     return submenus
   259 
   259 
   260 
   260