165 {'url_name': 'org_admin'}), |
165 {'url_name': 'org_admin'}), |
166 "Edit My Org Admin Profile", 'any_access') |
166 "Edit My Org Admin Profile", 'any_access') |
167 submenus.append(submenu) |
167 submenus.append(submenu) |
168 |
168 |
169 if roles.get('mentor'): |
169 if roles.get('mentor'): |
|
170 # add a link to the resign page |
170 submenu = (redirects.getManageRedirect(roles['mentor'], |
171 submenu = (redirects.getManageRedirect(roles['mentor'], |
171 {'url_name' : 'mentor'}), |
172 {'url_name' : 'mentor'}), |
172 "Resign as Mentor", 'any_access') |
173 "Resign as Mentor", 'any_access') |
|
174 submenus.append(submenu) |
|
175 |
|
176 # add a link to the edit page |
|
177 submenu = (redirects.getEditRedirect(roles['mentor'], |
|
178 {'url_name': 'mentor'}), |
|
179 "Edit My Org Mentor Profile", 'any_access') |
173 submenus.append(submenu) |
180 submenus.append(submenu) |
174 |
181 |
175 return submenus |
182 return submenus |
176 |
183 |
177 |
184 |