equal
deleted
inserted
replaced
270 assigned_proposals = [] |
270 assigned_proposals = [] |
271 |
271 |
272 # only when the program allows allocations |
272 # only when the program allows allocations |
273 # to be seen we should color the list |
273 # to be seen we should color the list |
274 if org_entity.scope.allocations_visible: |
274 if org_entity.scope.allocations_visible: |
275 # get the limit and offset for the list |
275 assigned_proposals = getProposalsToBeAcceptedForOrg(org_entity) |
276 _, offset = lists.getLimitAndOffset(request, 'offset_0', 'limit_0') |
|
277 |
|
278 # determine the amount of proposals to color |
|
279 to_color = max(0, org_entity.slots - offset) |
|
280 assigned_proposals = proposals[0:to_color] |
|
281 |
276 |
282 # show the amount of slots assigned on the webpage |
277 # show the amount of slots assigned on the webpage |
283 context['slots_visible'] = True |
278 context['slots_visible'] = True |
284 |
279 |
285 # update the prop_list with the ranking and coloring information |
280 # update the prop_list with the ranking and coloring information |