equal
deleted
inserted
replaced
198 'link_id': entity.link_id}, []) |
198 'link_id': entity.link_id}, []) |
199 |
199 |
200 if entity.status == 'invisible': |
200 if entity.status == 'invisible': |
201 # still add the document links so hosts can see how it looks like |
201 # still add the document links so hosts can see how it looks like |
202 items += document_view.view.getMenusForScope(entity, params) |
202 items += document_view.view.getMenusForScope(entity, params) |
203 items += self._getTimeDependentEntries(entity, params) |
203 items += self._getTimeDependentEntries(entity, params, id, user) |
204 |
204 |
205 items += [(redirects.getReviewOverviewRedirect( |
205 items += [(redirects.getReviewOverviewRedirect( |
206 entity, {'url_name': 'org_app'}), |
206 entity, {'url_name': 'org_app'}), |
207 "Review Org Applications", 'any_access')] |
207 "Review Org Applications", 'any_access')] |
208 # add link to edit Program Profile |
208 # add link to edit Program Profile |
237 items = [] |
237 items = [] |
238 |
238 |
239 #TODO(ljvderijk) Add more timeline dependent entries |
239 #TODO(ljvderijk) Add more timeline dependent entries |
240 timeline_entity = program_entity.timeline |
240 timeline_entity = program_entity.timeline |
241 |
241 |
242 if user and timeline_helper.isActivePeriod(timeline_entity, 'org_signup'): |
242 if timeline_helper.isActivePeriod(timeline_entity, 'org_signup'): |
243 # add the organization signup link |
243 # add the organization signup link |
244 items += [ |
244 items += [ |
245 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
245 (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}), |
246 "Apply to become an Organization", 'any_access')] |
246 "Apply to become an Organization", 'any_access')] |
247 |
247 |
248 # add the 'list my orgs' link |
248 if user: |
249 items += [ |
249 # add the 'List my Org Applications' link |
250 (redirects.getListSelfRedirect(program_entity, {'url_name' : 'org_app'}), |
250 items += [ |
251 "List my Org Applications", 'any_access')] |
251 (redirects.getListSelfRedirect(program_entity, |
|
252 {'url_name' : 'org_app'}), |
|
253 "List my Org Applications", 'any_access')] |
252 |
254 |
253 return items |
255 return items |
254 |
256 |
255 |
257 |
256 view = View() |
258 view = View() |