diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-03 23:52:11 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-17 10:19:24 -0500 |
commit | e7a58b9d57d77a83dd1879feafbaccef5d367587 (patch) | |
tree | c324a74f3a0fa05407f442a98938ede5bd56c50b /public | |
parent | 073e00ca703aa90858e70a7ddef71f0a16094d57 (diff) |
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 <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r-- | public/views.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/public/views.py b/public/views.py index a80c30ed..912801fe 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)) |