app/soc/views/models/organization.py
changeset 2201 8e8b1f0ad87f
parent 2195 a71c31527582
child 2202 f6a1c141f51e
--- a/app/soc/views/models/organization.py	Fri Apr 17 22:50:16 2009 +0000
+++ b/app/soc/views/models/organization.py	Sat Apr 18 11:41:56 2009 +0000
@@ -272,12 +272,7 @@
     # only when the program allows allocations 
     # to be seen we should color the list
     if org_entity.scope.allocations_visible:
-      # get the limit and offset for the list
-      _, offset = lists.getLimitAndOffset(request, 'offset_0', 'limit_0')
-
-      # determine the amount of proposals to color
-      to_color = max(0, org_entity.slots - offset)
-      assigned_proposals = proposals[0:to_color]
+      assigned_proposals = getProposalsToBeAcceptedForOrg(org_entity)
 
       # show the amount of slots assigned on the webpage
       context['slots_visible'] = True