2017-08-07 22:23:07 -05:00
|
|
|
## -*- coding: utf-8; -*-
|
2017-08-07 23:22:47 -05:00
|
|
|
<table class="diff${' monospace' if diff.monospace else ''}">
|
2017-08-07 22:23:07 -05:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
% for column in diff.columns:
|
|
|
|
<th>${column}</th>
|
|
|
|
% endfor
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
% for field in diff.fields:
|
|
|
|
<tr${' class="diff"' if diff.values_differ(field) else ''|n}>
|
2017-08-13 00:24:58 -05:00
|
|
|
<td class="field">${diff.render_field(field)}</td>
|
2017-08-07 22:23:07 -05:00
|
|
|
<td class="old-value">${diff.render_old_value(field)}</td>
|
|
|
|
<td class="new-value">${diff.render_new_value(field)}</td>
|
|
|
|
</tr>
|
|
|
|
% endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|