From 3200bd5985ce0291c382f7f0035ff6345148b500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Fri, 2 Mar 2018 17:23:57 +0100 Subject: [PATCH] Minor design changes on Manager tab --- public/less/angular-md.less | 2 +- public/less/manager.less | 5 +- public/templates/manager/manager-status.html | 77 ++++++++------------ 3 files changed, 34 insertions(+), 50 deletions(-) diff --git a/public/less/angular-md.less b/public/less/angular-md.less index ab88c202c..f8eb47da1 100644 --- a/public/less/angular-md.less +++ b/public/less/angular-md.less @@ -6,7 +6,7 @@ background-color: rgba(158, 158, 158, 0.2); } -md-card-content .ng-binding { +md-card-content .ng-binding:not(.color-grey) { color: black !important; } diff --git a/public/less/manager.less b/public/less/manager.less index b75d93049..9b754f0b2 100644 --- a/public/less/manager.less +++ b/public/less/manager.less @@ -105,7 +105,6 @@ /* ------------------------------------------------------------------------ */ .manager-status-subtitle { - font-weight: bold; min-width: 150px } @@ -285,3 +284,7 @@ .margin-8 { margin: 8px !important; } + +.color-grey { + color: grey !important; +} \ No newline at end of file diff --git a/public/templates/manager/manager-status.html b/public/templates/manager/manager-status.html index 096578d25..6696f9869 100644 --- a/public/templates/manager/manager-status.html +++ b/public/templates/manager/manager-status.html @@ -14,75 +14,55 @@ -
- - -
{{agentsCountTotal}}
-
Total agents
+
+ + + Total agents: {{agentsCountTotal}} + Active: {{agentsCountActive}} + Disconnected: {{agentsCountDisconnected}} + Never connected: {{agentsCountNeverConnected}} + Agents coverage: {{(agentsCoverity | number:2)}}% - - - -
{{agentsCountActive}}
-
Active
-
-
- - -
{{agentsCountDisconnected}}
-
Disconnected
-
-
- - -
{{agentsCountNeverConnected}}
-
Never connected
-
-
- - -
{{(agentsCoverity | number:2)}}%
-
Agents coverage
-
-
+
-

Manager information

+ Manager information +

Version

-

{{managerInfo.version ? managerInfo.version : '-'}}

+

{{managerInfo.version ? managerInfo.version : '-'}}

Compilation date

-

{{managerInfo.compilation_date ? managerInfo.compilation_date : '-'}}

+

{{managerInfo.compilation_date ? managerInfo.compilation_date : '-'}}

Installation path

-

{{managerInfo.path ? managerInfo.path : '-'}}

+

{{managerInfo.path ? managerInfo.path : '-'}}

Installation type

-

{{managerInfo.type ? managerInfo.type : '-'}}

+

{{managerInfo.type ? managerInfo.type : '-'}}

Agents limit

-

{{managerInfo.max_agents ? managerInfo.max_agents : '-'}}

+

{{managerInfo.max_agents ? managerInfo.max_agents : '-'}}

OpenSSL Support

-

{{managerInfo.openssl_support ? managerInfo.openssl_support : '-'}}

+

{{managerInfo.openssl_support ? managerInfo.openssl_support : '-'}}

Total rules

-

{{totalRules ? totalRules : '-'}}

+

{{totalRules ? totalRules : '-'}}

Total decoders

-

{{totalDecoders ? totalDecoders : '-'}}

+

{{totalDecoders ? totalDecoders : '-'}}

@@ -90,39 +70,40 @@ -

Last registered agent

+ Last registered agent +

Name

-

{{agentInfo.name ? agentInfo.name : '-'}}

+

{{agentInfo.name ? agentInfo.name : '-'}}

ID

-

{{agentInfo.id ? agentInfo.id : '-'}}

+

{{agentInfo.id ? agentInfo.id : '-'}}

Status

-

{{agentInfo.status ? agentInfo.status : '-'}}

+

{{agentInfo.status ? agentInfo.status : '-'}}

IP Address

-

{{agentInfo.ip ? agentInfo.ip : '-'}}

+

{{agentInfo.ip ? agentInfo.ip : '-'}}

Date add

-

{{agentInfo.dateAdd ? agentInfo.dateAdd : '-'}}

+

{{agentInfo.dateAdd ? agentInfo.dateAdd : '-'}}

Version

-

{{agentInfo.version ? agentInfo.version : '-'}}

+

{{agentInfo.version ? agentInfo.version : '-'}}

Last keep alive

-

{{agentInfo.lastKeepAlive ? agentInfo.lastKeepAlive : '-'}}

+

{{agentInfo.lastKeepAlive ? agentInfo.lastKeepAlive : '-'}}

Operating system

-

{{agentInfo.os.name ? agentInfo.os.name + agentInfo.os.version : agentInfo.os.uname ? agentInfo.os.uname : '-'}}

+

{{agentInfo.os.name ? agentInfo.os.name + agentInfo.os.version : agentInfo.os.uname ? agentInfo.os.uname : '-'}}