tailbone/tailbone/templates/diff.mako
Lance Edgar 9efe767654 Add smarts to show display text for some version diff fields
e.g. show `str(customer)` along with `customer_uuid` since almost
nobody will "care" about the uuid so much, they just want the name
2023-10-09 00:19:29 -05:00

20 lines
551 B
Mako

## -*- coding: utf-8; -*-
<table class="diff ${diff.nature} ${' monospace' if diff.monospace else ''}">
<thead>
<tr>
% for column in diff.columns:
<th>${column}</th>
% endfor
</tr>
</thead>
<tbody>
% for field in diff.fields:
<tr ${diff.get_row_attrs(field)|n}>
<td class="field">${diff.render_field(field)}</td>
<td class="old-value">${diff.render_old_value(field)}</td>
<td class="new-value">${diff.render_new_value(field)}</td>
</tr>
% endfor
</tbody>
</table>