﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6285	Cutting up a list of objects into a table with a given number of columns	Purdea Andrei	Adrian Holovaty	" === Cutting up a list of objects into a table with a given number of columns === 

 ==== Approaches that might be bad: ==== 

 * it is not a good idea for the view to cut up the list, because the number of columns (N) is layout-related.

 * useing ''divisibleby'' is somewhat low-level, you are implementing a for loop, in a template language that is supposed to be high-level
 ==== Proposal: ==== 
 * to have a '''filter''' that will behave like this:
{{{
  {% for row in objectlist|tablecols:3 %}
     <tr>
       {% for item in row %}
           <td>
                {{ item.content }}
           </td>
       {% endfor %}
     </tr>
  {% endfor %}
}}}
"	New feature	closed	Template system	dev	Normal	wontfix	feature_request		Accepted	0	1	1	0	0	0
