app/soc/views/models/organization.py
changeset 1283 438dceed3132
parent 1266 e8feadcbc47f
child 1284 92f7a24d8f42
equal deleted inserted replaced
1282:005be2cf889d 1283:438dceed3132
   152       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'org'),
   152       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'org'),
   153           "Create a New Document", 'any_access')
   153           "Create a New Document", 'any_access')
   154       submenus.append(submenu)
   154       submenus.append(submenu)
   155 
   155 
   156     if roles.get('org_admin'):
   156     if roles.get('org_admin'):
       
   157       # add a link to the resign page
   157       submenu = (redirects.getManageRedirect(roles['org_admin'], 
   158       submenu = (redirects.getManageRedirect(roles['org_admin'], 
   158           {'url_name': 'org_admin'}), 
   159           {'url_name': 'org_admin'}), 
   159           "Resign as Org Admin", 'any_access')
   160           "Resign as Org Admin", 'any_access')
       
   161       submenus.append(submenu)
       
   162 
       
   163       # add a link to the edit page
       
   164       submenu = (redirects.getEditRedirect(roles['org_admin'],
       
   165           {'url_name': 'org_admin'}),
       
   166           "Edit My Org Admin Profile", 'any_access')
   160       submenus.append(submenu)
   167       submenus.append(submenu)
   161 
   168 
   162     if roles.get('mentor'):
   169     if roles.get('mentor'):
   163       submenu = (redirects.getManageRedirect(roles['mentor'], 
   170       submenu = (redirects.getManageRedirect(roles['mentor'], 
   164           {'url_name' : 'mentor'}), 
   171           {'url_name' : 'mentor'}),