show/activitylog: use diff for modifications

This commit is contained in:
Thomas Gelf 2015-09-14 16:33:28 +02:00
parent 9db67721e1
commit 41d262cc3a

View File

@ -5,13 +5,12 @@
) ?></h2> ) ?></h2>
<table class="log-properties"> <table class="log-properties">
<!-- TODO: diff, old/new class -->
<tr><td style="vertical-align: top; width: 50%"> <tr><td style="vertical-align: top; width: 50%">
<h3><?= $this->translate('Former state') ?></h3> <h3><?= $this->translate('Former state') ?></h3>
<pre><?= $this->escape((string) $this->oldObject) ?></pre> <span class="diff old"><?= $this->diff ?></pre>
</td><td style="vertical-align: top; width: 50%"> </td><td style="vertical-align: top; width: 50%">
<h3><?= $this->translate('New object') ?></h3> <h3><?= $this->translate('New object') ?></h3>
<pre><?= $this->escape((string) $this->newObject) ?></pre> <span class="diff new"><?= $this->diff ?></pre>
</td></tr> </td></tr>
</table> </table>