diff --git a/pkg/dashboard/assets/css/dashboard.css b/pkg/dashboard/assets/css/dashboard.css index 7e7f2947..18d603d5 100644 --- a/pkg/dashboard/assets/css/dashboard.css +++ b/pkg/dashboard/assets/css/dashboard.css @@ -107,59 +107,42 @@ margin-right: 3px; } -.card.category h3 strong { - font-weight: 800; +.category .name { + font-weight: bold; } -.category-list { - list-style-type: none; - margin: 10px 20px; - padding: 0; -} - -.category-list .category-head { - margin: 20px 0 0; -} - -.category-list .category-name { - font-size: 20px; +.category .category-score { + font-size: 13px; + margin-left: 5px; font-weight: 200; } -.category-list .category-results { - font-size: 13px; - float: right; +.category .category-score strong { + font-weight: bold; } -.category-list .category-info { - font-size: 13px; + +.category .category-info { + font-size: 14px; line-height: 21px; - color: #777; - margin: 0; + margin-left: 25px; } -.category-list .category-info a { +.category .category-info a { font-weight: bold; color: #777; text-decoration: none; } -.category-list .category-info a:hover { +.category .category-info a:hover { color: #23103A; } -.category-list .status { - margin: 5px 0; - width: 840px; +.category .status { + width: 200px; animation: fadeIn 2s; } -.category-list .status div { - height: 5px; - border-radius: 3px; -} - - .expandable-table { width: 100%; border-spacing: 0; @@ -170,7 +153,7 @@ height: 50px; } -.expandable-table td { +.expandable-table .resource-info { padding: 15px 20px; margin: 0; font-size: 18px; @@ -256,17 +239,17 @@ a.more-info { text-decoration: none; } -.namespace .status-bar { - vertical-align: top; - padding-top: 21px; +.card .status-bar { + padding-top: 7px; + float: right; } -.namespace .status-bar .status { +.card .status-bar .status { float: right; animation: fadeIn 2s; } -.namespace .status { +.card .status { width: 200px; } diff --git a/pkg/dashboard/templates/dashboard.gohtml b/pkg/dashboard/templates/dashboard.gohtml index d153a56b..19450668 100644 --- a/pkg/dashboard/templates/dashboard.gohtml +++ b/pkg/dashboard/templates/dashboard.gohtml @@ -40,70 +40,35 @@
-

Results by Category

- +
{{ $category }}Score: {{ getScore $summary }}%
+
+

Properly configured health checks can ensure the long term availability and reliability of your application running in Kubernetes. Polaris validates that health checks are configured for each pod running in your cluster. Refer to the Polaris Docs for more information.

+
+
+ {{ end }} {{/* end range categories */}} + {{ range $namespace, $nsResult := .AuditData.NamespacedResults }}

Namespace: {{ $namespace }}

- +
{{ range .DeploymentResults }} -
- - - + + +
Deployment: {{ .Name }}
+
+

Pod Spec:

+ +
+ {{ range .PodResult.ContainerResults}} +
+

Container: {{ .Name }}

+ +
+ {{ end }} {{/* end range .PodResult.ContainerResults */}} + {{ end }} {{/* end range .DeploymentResults */}} -
-
Deployment: {{ .Name }}
-
-

Pod Spec:

-
    - {{ range $message := .PodResult.Messages}} -
  • - - - - - {{ .Message }} -
  • - {{ end }} -
-
- {{ range .PodResult.ContainerResults}} -
-

Container: {{ .Name }}

-
    - {{ range $message := .Messages}} -
  • - - - - - {{ .Message }} -
  • - {{ end }} -
-
- {{ end }} {{/* end range .PodResult.ContainerResults */}} - -
+
+
@@ -111,10 +76,42 @@
-
+
{{ end }} {{/* end range .AuditData.NamespacedResults */}}