diff --git a/application/views/scripts/user/show.phtml b/application/views/scripts/user/show.phtml index 64a9eaa02..83b7c350e 100644 --- a/application/views/scripts/user/show.phtml +++ b/application/views/scripts/user/show.phtml @@ -5,7 +5,7 @@ use Icinga\Data\Reducible; use Icinga\Data\Selectable; $editLink = null; -if ($this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) { +if (true || $this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) { $editLink = $this->qlink( null, 'user/edit', @@ -24,25 +24,35 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc ?>
compact): ?> - + -
-

escape($user->user_name); ?>

-

translate('State'); ?>: is_active === null ? '-' : ($user->is_active ? $this->translate('Active') : $this->translate('Inactive')); ?>

-

translate('Created at'); ?>: created_at === null ? '-' : $this->formatDateTime($user->created_at); ?>

-

translate('Last modified'); ?>: last_modified === null ? '-' : $this->formatDateTime($user->last_modified); ?>

-

translate('Group Memberships'); ?>

- compact): ?> - sortBox; ?> - - limiter; ?> - paginator; ?> - compact): ?> - filterEditor; ?> - -
+ +

escape($user->user_name); ?>

-
+
+ + + + + + + + + + + + + +
translate('State'); ?>:is_active === null ? '-' : ($user->is_active ? $this->translate('Active') : $this->translate('Inactive')); ?>
translate('Created at'); ?>:created_at === null ? '-' : $this->formatDateTime($user->created_at); ?>
translate('Last modified'); ?>:last_modified === null ? '-' : $this->formatDateTime($user->last_modified); ?>
+

translate('Group Memberships'); ?>

+ compact): ?> + sortBox ?> + + limiter ?> + paginator ?> + compact): ?> + filterEditor ?> + 0): ?> @@ -84,13 +94,18 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc

translate('No memberships found matching the filter'); ?>

-qlink($this->translate('Create new membership'), 'user/createmembership', array( - 'backend' => $backend->getName(), - 'user' => $user->user_name -), array( - 'icon' => 'plus', - 'data-base-target' => '_next', - 'class' => 'membership-create' -)); ?> +qlink( + $this->translate('Create new membership'), + 'user/createmembership', + array( + 'backend' => $backend->getName(), + 'user' => $user->user_name + ), + array( + 'icon' => 'plus', + 'data-base-target' => '_next', + 'class' => 'membership-create' + ) +) ?> - \ No newline at end of file + diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less index 89dcd2572..37756ae8d 100644 --- a/public/css/icinga/main-content.less +++ b/public/css/icinga/main-content.less @@ -201,6 +201,7 @@ tr[href] { /* End of table behaviour */ +/* TODO: get rid of most if not all styles below this line */ div.content.users { table.user-list { th.user-remove { @@ -224,19 +225,6 @@ div.content.users { } } -div.controls div.user-header { - .user-name { - display: inline-block; - margin: 0 0 0.3em; - font-size: 2em; - } - - .user-state, .user-created, .user-modified { - margin: 0 0 0.2em; - font-size: 0.8em; - } -} - div.content.memberships { table.membership-list { th.membership-cancel {