Django 1.0.2 In the following template I intend to make rows that have an empty second column bold. Hence trying 2 in row. My syntax is wrong due to inexperience with Python, and possibly my methodology also.
{% extends "base.html" %} {% block content %} <body> <h1>Agent summary report</h1> <p> The most recent listing for each property listed within the past 12 weeks</p> <div class="container small"> <table> <thead> <th class="span-7">Address</th> <th class="span-2">Date</th> <th class="span-4">Price</th> <th class="span-1">Method</th> <th class="span-2">Agent</th> <th class="span-3"> </th> <th class="span-3 last">Mobile</th> </thead> <tbody> {% for row in listings %} <tr {% ifequal 2 in row None %}class="bold-row"{% endifequal %} > {% for item in row %} <td>{{ item }}</td> {% endfor %} </tr> {% endfor %} </tbody> </table> </div> </body> {% endblock %} Is there a way to do this? Mike --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---