From 17fa0d3f11d4f494e6456f5e5b2c6914d00deef6 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 9 Jun 2015 08:23:06 +0200 Subject: [PATCH] Revert "Improve group and user view layout" This reverts commit 44e3dba36226451afb2a3f0954ae21bc3bb6c7ba. Reason: * Controls are controls, not content * Controls must still be shown in case of a non-matching filter --- application/views/scripts/group/show.phtml | 11 +++++------ application/views/scripts/user/show.phtml | 11 +++++------ public/css/icinga/main-content.less | 10 ++++------ 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/application/views/scripts/group/show.phtml b/application/views/scripts/group/show.phtml index 8c8c91f51..636a449d4 100644 --- a/application/views/scripts/group/show.phtml +++ b/application/views/scripts/group/show.phtml @@ -30,12 +30,8 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan

escape($group->group_name); ?>

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

-

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

-
translate('Members'); ?>
+

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

- -
- 0): ?> compact): ?> sortBox; ?> @@ -44,6 +40,9 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan compact): ?> filterEditor; ?> +
+
+ 0): ?> @@ -67,7 +66,7 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan
-

translate('Group has no members.'); ?>

+

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

qlink($this->translate('Add a new member'), 'group/addmember', array( diff --git a/application/views/scripts/user/show.phtml b/application/views/scripts/user/show.phtml index f4e9dee6a..82f4c53f9 100644 --- a/application/views/scripts/user/show.phtml +++ b/application/views/scripts/user/show.phtml @@ -30,12 +30,8 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc

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'); ?>
+

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

- -
- 0): ?> compact): ?> sortBox; ?> @@ -44,6 +40,9 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc compact): ?> filterEditor; ?> +
+
+ 0): ?> @@ -81,7 +80,7 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
- translate('User has no group memberships.'); ?> +

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

qlink($this->translate('Create new membership'), 'user/createmembership', array( diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less index 06269d271..18bc03a57 100644 --- a/public/css/icinga/main-content.less +++ b/public/css/icinga/main-content.less @@ -236,9 +236,8 @@ div.content.users { } div.controls div.user-header { - h5 { - margin-bottom: 0em; - } + border-bottom: 2px solid @colorPetrol; + margin-bottom: 1em; .user-name { display: inline-block; @@ -303,9 +302,8 @@ div.content.groups { } div.controls div.group-header { - h5 { - margin-bottom: 0em; - } + border-bottom: 2px solid @colorPetrol; + margin-bottom: 1em; .group-name { display: inline-block;