Re: Striped tables in Django
Look up the "cycle" template tag. It will do exactly what you want. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Striped tables in Django
On Jan 23, 2008 4:55 PM, shabda <[EMAIL PROTECTED]> wrote: > > Does anybody have a code snippet for getting striped tables with > django? Basically I would need to apply alternating classes to the the > rows returned by the rowset. I do not want to do this from javascript, > but from server side. http://www.djangoproject.com/documentation/templates/#cycle papa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Striped tables in Django
Does anybody have a code snippet for getting striped tables with django? Basically I would need to apply alternating classes to the the rows returned by the rowset. I do not want to do this from javascript, but from server side. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---