From e7a58b9d57d77a83dd1879feafbaccef5d367587 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 3 Mar 2010 23:52:11 -0600 Subject: Donor page rework for list formatting Instead of doing slicing and ugly table-based layout, move to a CSS-based organization of the donor list. Shoot for 4 columns but should degrade gracefully to fewer, and will look just fine with no CSS at all (one big tall list). Signed-off-by: Dan McGee --- public/views.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'public') diff --git a/public/views.py b/public/views.py index a80c30e..912801f 100644 --- a/public/views.py +++ b/public/views.py @@ -39,14 +39,8 @@ def userlist(request, type='Developers'): context_instance=RequestContext(request)) def donate(request): - donor_count = Donor.objects.count() - donors = Donor.objects.order_by('name') - splitval = donor_count / 4 context = { - 'slice1': donors[:splitval], - 'slice2': donors[(splitval):(splitval*2)], - 'slice3': donors[(splitval*2):(donor_count-splitval)], - 'slice4': donors[(donor_count-splitval):donor_count], + 'donors': Donor.objects.order_by('name'), } return render_to_response('public/donate.html', context, context_instance=RequestContext(request)) -- cgit v1.2.3-24-g4f1b