Skip to content

Commit

Permalink
Merge pull request #1706 from tomudding/feature/activity-approval-adm…
Browse files Browse the repository at this point in the history
…in-overview-description-blog

Change activity admin approval view to use `diff` for description
  • Loading branch information
tomudding authored Sep 11, 2023
2 parents 9c3d8ad + a8d9780 commit 9bb5387
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions module/Activity/view/activity/admin-approval/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ declare(strict_types=1);

use Activity\Model\Activity as ActivityModel;
use Application\Form\ModifyRequest as RequestForm;
use Application\View\Helper\Diff;
use Application\View\HelperTrait;
use Laminas\View\Renderer\PhpRenderer;

Expand Down Expand Up @@ -141,14 +142,26 @@ $this->breadcrumbs()
<span class="flag-icon flag-icon-nl"></span>
<strong><?= $this->translate('Description') ?>:</strong>
</span>
<?= $this->escapeHtml($activity->getDescription()->getValueNL()) ?>
<?=
$this->diff(
$activity->getDescription()->getValueNL(),
$activity->getDescription()->getValueNL(),
Diff::DIFF_RENDER_INLINE,
)
?>
</div>
<div class="col-md-5">
<span class="approvable-property">
<span class="flag-icon flag-icon-en"></span>
<strong><?= $this->translate('Description') ?>:</strong>
</span>
<?= $this->escapeHtml($activity->getDescription()->getValueEN()) ?>
<?=
$this->diff(
$activity->getDescription()->getValueEN(),
$activity->getDescription()->getValueEN(),
Diff::DIFF_RENDER_INLINE,
)
?>
</div>
</div>
<div class="row">
Expand Down

0 comments on commit 9bb5387

Please sign in to comment.