equal
deleted
inserted
replaced
276 # add a link to the edit page |
276 # add a link to the edit page |
277 submenu = (redirects.getEditRedirect(group_entity, params), |
277 submenu = (redirects.getEditRedirect(group_entity, params), |
278 "Edit Club Profile", 'any_access') |
278 "Edit Club Profile", 'any_access') |
279 submenus.append(submenu) |
279 submenus.append(submenu) |
280 |
280 |
281 # TODO(ljvderijk) add more usefull links, like resign as admin/member |
281 # add a link to resign as club admin |
|
282 submenu = (redirects.getManageRedirect(roles['club_admin'], |
|
283 {'url_name': 'club_admin'}), |
|
284 "Resign as Club Admin", 'any_access') |
|
285 submenus.append(submenu) |
|
286 |
|
287 if roles.get('club_member'): |
|
288 # add a link to resign as club member |
|
289 submenu = (redirects.getManageRedirect(roles['club_member'], |
|
290 {'url_name' : 'club_member'}), |
|
291 "Resign as Club Member", 'any_access') |
|
292 submenus.append(submenu) |
282 |
293 |
283 return submenus |
294 return submenus |
284 |
295 |
285 |
296 |
286 view = View() |
297 view = View() |