Re: How would you code a template to do this (template logic)

2009-03-31 Thread Chris O'Donnell
Interesting – I have I slightly different dilemma, but I think this will work. Here's the thread: http://groups.google.com/group/django-users/browse_frm/thread/b87a12f63f2db0a3 Regards, Chris --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: How would you code a template to do this (template logic)

2009-03-30 Thread Alex Gaynor
On Mon, Mar 30, 2009 at 9:30 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Mon, 2009-03-30 at 18:20 -0700, IanR wrote: > > I have a grid of 51 items that I want to display in 6 columns.. Column > > 1-5 contain 9 elements, Column 6 contains 6 elements. > > > > This is done by cre

Re: How would you code a template to do this (template logic)

2009-03-30 Thread Malcolm Tredinnick
On Mon, 2009-03-30 at 18:20 -0700, IanR wrote: > I have a grid of 51 items that I want to display in 6 columns.. Column > 1-5 contain 9 elements, Column 6 contains 6 elements. > > This is done by creating 6 div's that are float-left and only 50px > wide. So what I would do is just count in a for

How would you code a template to do this (template logic)

2009-03-30 Thread IanR
I have a grid of 51 items that I want to display in 6 columns.. Column 1-5 contain 9 elements, Column 6 contains 6 elements. This is done by creating 6 div's that are float-left and only 50px wide. So what I would do is just count in a for loop and when I hit the row limit just output a "" and i