# HG changeset patch # User Sverre Rabbelier # Date 1240054916 0 # Node ID 8e8b1f0ad87f3d6c3c6e18a58e984be048662193 # Parent a1a7c262235d879f6ddd3f43757c398359fd8154 Show in green the proposals that would be accepted Patch by: Sverre Rabbelier, Lennard de Rijk diff -r a1a7c262235d -r 8e8b1f0ad87f 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