diff --git a/application/views/scripts/user/show.phtml b/application/views/scripts/user/show.phtml index 5aabdd11a..ddcbd35c5 100644 --- a/application/views/scripts/user/show.phtml +++ b/application/views/scripts/user/show.phtml @@ -4,29 +4,28 @@ use Icinga\Data\Updatable; use Icinga\Data\Reducible; use Icinga\Data\Selectable; -$editLink = null; -if ($this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) { - $editLink = $this->qlink( - null, - 'user/edit', - array( - 'backend' => $backend->getName(), - 'user' => $user->user_name - ), - array( - 'title' => sprintf($this->translate('Edit user %s'), $user->user_name), - 'class' => 'user-edit', - 'icon' => 'edit' - ) - ); -} - ?>
compact): ?> -

escape($user->user_name) ?>

+

escape($user->user_name) ?>

+ hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) { + echo $this->qlink( + $this->translate('Edit User'), + 'user/edit', + array( + 'backend' => $backend->getName(), + 'user' => $user->user_name + ), + array( + 'class' => 'button-link', + 'icon' => 'edit' + ) + ); + } + ?>
translate('State'); ?>