Show in green the proposals that would be accepted
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 18 Apr 2009 11:41:56 +0000
changeset 2201 8e8b1f0ad87f
parent 2200 a1a7c262235d
child 2202 f6a1c141f51e
Show in green the proposals that would be accepted Patch by: Sverre Rabbelier, Lennard de Rijk
app/soc/views/models/organization.py
--- 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