Added a Assign Slots link to sidebar for Hosts
authorSverre Rabbelier <srabbelier@gmail.com>
Tue, 17 Mar 2009 13:28:06 +0000
changeset 1911 87c3e62b28dc
parent 1910 cb105d1f51b8
child 1912 0d37e9797a90
Added a Assign Slots link to sidebar for Hosts Patch by: Sverre Rabbelier
app/soc/views/helper/redirects.py
app/soc/views/models/program.py
--- a/app/soc/views/helper/redirects.py	Tue Mar 17 13:25:55 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Tue Mar 17 13:28:06 2009 +0000
@@ -287,7 +287,7 @@
       params['url_name'], entity.key().name())
 
 
-def getSlotsRedirect(entity, params):
+def getAssignSlotsRedirect(entity, params):
   """Returns the assign slots redirect for the specified entity.
   """
 
--- a/app/soc/views/models/program.py	Tue Mar 17 13:25:55 2009 +0000
+++ b/app/soc/views/models/program.py	Tue Mar 17 13:28:06 2009 +0000
@@ -553,6 +553,9 @@
         # add link to edit Program Profile
         items += [(redirects.getEditRedirect(entity, params),
             'Edit Program Profile','any_access')]
+        # add link to Assign Slots
+        items += [(redirects.getAssignSlotsRedirect(entity, params),
+            'Assign Slots','any_access')]
         # add link to edit Program Timeline
         items += [(redirects.getEditRedirect(entity, {'url_name': 'timeline'}),
             "Edit Program Timeline", 'any_access')]