525 # add the organization signup link |
525 # add the organization signup link |
526 items += [ |
526 items += [ |
527 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
527 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
528 "Apply to become an Organization", 'any_access')] |
528 "Apply to become an Organization", 'any_access')] |
529 |
529 |
530 if user: |
530 if user and timeline_helper.isAfterEvent(timeline_entity, 'org_signup_start'): |
531 # add the 'List my Organization Applications' link |
531 # add the 'List my Organization Applications' link |
532 items += [ |
532 items += [ |
533 (redirects.getListSelfRedirect(program_entity, |
533 (redirects.getListSelfRedirect(program_entity, |
534 {'url_name' : 'org_app'}), |
534 {'url_name' : 'org_app'}), |
535 "List My Organization Applications", 'any_access')] |
535 "List My Organization Applications", 'any_access')] |
536 |
536 |
537 # get the student entity for this user and program |
537 # get the student entity for this user and program |
538 filter = {'user': user, |
538 filter = {'user': user, |
539 'scope': program_entity, |
539 'scope': program_entity, |
540 'status': 'active'} |
540 'status': 'active'} |