app/soc/views/models/club.py
changeset 1317 fad74cf4e5da
parent 1307 091a21cf3627
child 1330 fa13d8b45594
equal deleted inserted replaced
1316:1ddf04976bee 1317:fad74cf4e5da
   178     if roles.get('club_member') or roles.get('club_admin'):
   178     if roles.get('club_member') or roles.get('club_admin'):
   179       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'club'),
   179       submenu = (redirects.getCreateDocumentRedirect(group_entity, 'club'),
   180           "Create a New Document", 'any_access')
   180           "Create a New Document", 'any_access')
   181       submenus.append(submenu)
   181       submenus.append(submenu)
   182 
   182 
       
   183       submenu = (redirects.getListDocumentsRedirect(group_entity, 'club'),
       
   184           "List Documents", 'any_access')
       
   185       submenus.append(submenu)
       
   186 
   183     if roles.get('club_admin'):
   187     if roles.get('club_admin'):
   184       # add a link to resign as club admin
   188       # add a link to resign as club admin
   185       submenu = (redirects.getManageRedirect(roles['club_admin'], 
   189       submenu = (redirects.getManageRedirect(roles['club_admin'], 
   186           {'url_name': 'club_admin'}), 
   190           {'url_name': 'club_admin'}), 
   187           "Resign as Club Admin", 'any_access')
   191           "Resign as Club Admin", 'any_access')