| 48 | | <td py:when="idx == 0" class="id"><a href="$result.href" title="View ticket">#$result.id</a></td> |
| 49 | | <td py:otherwise="" class="$header.name" py:choose=""> |
| 50 | | <a py:when="header.name == 'summary'" href="$result.href" title="View ticket">$result.summary</a> |
| 51 | | <span py:when="header.name in ('time', 'changetime')">${format_datetime(result[header.name])}</span> |
| 52 | | <span py:otherwise="">${result[header.name]}</span> |
| 53 | | </td> |
| | 48 | <py:with vars="name = header.name; value = result[name]"> |
| | 49 | <td py:when="idx == 0" class="id"><a href="$result.href" title="View ticket">#$result.id</a></td> |
| | 50 | <td py:otherwise="" class="$name" py:choose=""> |
| | 51 | <a py:when="name == 'summary'" href="$result.href" title="View ticket">$value</a> |
| | 52 | <span py:when="isinstance(value, datetime)">${format_datetime(value)}</span> |
| | 53 | <span py:otherwise="">$value</span> |
| | 54 | </td> |
| | 55 | </py:with> |