app/soc/views/models/club.py
changeset 1069 e8bcc5a26532
parent 1063 f529113e1bc5
child 1083 b8018d7a9f23
equal deleted inserted replaced
1068:8a06ebff014e 1069:e8bcc5a26532
   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()