Fix row highlighting for sources panel on product view

This commit is contained in:
Lance Edgar 2017-08-04 10:05:43 -05:00
parent ea7eb47551
commit b4cabadcd9

View file

@ -188,8 +188,8 @@
<th>Status</th> <th>Status</th>
</thead> </thead>
<tbody> <tbody>
% for cost in instance.costs: % for i, cost in enumerate(instance.costs, 1):
<tr> <tr class="${'even' if i % 2 == 0 else 'odd'}">
<td class="center">${'X' if cost.preference == 1 else ''}</td> <td class="center">${'X' if cost.preference == 1 else ''}</td>
<td>${cost.vendor}</td> <td>${cost.vendor}</td>
<td class="center">${cost.code or ''}</td> <td class="center">${cost.code or ''}</td>