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
1 changed files with 2 additions and 3 deletions

View File

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