Show 'List my Organization Applications' link even after signup closed
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/program.py Fri Mar 13 23:18:06 2009 +0000
+++ b/app/soc/views/models/program.py Sat Mar 14 00:12:22 2009 +0000
@@ -527,12 +527,12 @@
(redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}),
"Apply to become an Organization", 'any_access')]
- if user:
- # add the 'List my Organization Applications' link
- items += [
- (redirects.getListSelfRedirect(program_entity,
- {'url_name' : 'org_app'}),
- "List My Organization Applications", 'any_access')]
+ if user and timeline_helper.isAfterEvent(timeline_entity, 'org_signup_start'):
+ # add the 'List my Organization Applications' link
+ items += [
+ (redirects.getListSelfRedirect(program_entity,
+ {'url_name' : 'org_app'}),
+ "List My Organization Applications", 'any_access')]
# get the student entity for this user and program
filter = {'user': user,