Added a button to list all your org applications to a speficic program menu.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 09 Feb 2009 00:02:07 +0000
changeset 1257 12d2bf06698f
parent 1256 375632e7ec21
child 1258 a5aec498436e
Added a button to list all your org applications to a speficic program menu. The entry only shows up when orgs can apply. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Sun Feb 08 23:56:56 2009 +0000
+++ b/app/soc/views/models/program.py	Mon Feb 09 00:02:07 2009 +0000
@@ -164,10 +164,10 @@
           # still add the document links so hosts can see how it looks like
           items += document_view.view.getMenusForScope(entity, params)
           items += self._getTimeDependentEntries(entity, params)
-        
+
         items += [(redirects.getReviewOverviewRedirect(
             entity, {'url_name': 'org_app'}),
-            "List all Org Applications", 'any_access')]
+            "Review Org Applications", 'any_access')]
         # add link to edit Program Profile
         items += [(redirects.getEditRedirect(entity, params),
             'Edit Program Profile','any_access')]
@@ -205,6 +205,10 @@
           (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}),
           "Apply to become an Organization", 'any_access')]
 
+      items += [
+          (redirects.getListSelfRedirect(program_entity, {'url_name' : 'org_app'}),
+           "List my Org Applications", 'any_access')]
+
     return items