From 5d6446afeddc4a4a602e75df6e7519facb120dbf Mon Sep 17 00:00:00 2001 From: Jordan Doig Date: Wed, 9 Dec 2020 14:33:29 -0700 Subject: [PATCH] Update docs links --- pkg/dashboard/helpers.go | 2 +- pkg/dashboard/templates/dashboard.gohtml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/dashboard/helpers.go b/pkg/dashboard/helpers.go index b96fa642..84779010 100644 --- a/pkg/dashboard/helpers.go +++ b/pkg/dashboard/helpers.go @@ -122,7 +122,7 @@ func getIcon(rm validator.ResultMessage) string { } func getCategoryLink(category string) string { - return strings.Replace(strings.ToLower(category), " ", "-", -1) + return "https://polaris.docs.fairwinds.com/checks/" + strings.ToLower(category) } func getCategoryInfo(category string) string { diff --git a/pkg/dashboard/templates/dashboard.gohtml b/pkg/dashboard/templates/dashboard.gohtml index fc309ef3..e0c7af0f 100644 --- a/pkg/dashboard/templates/dashboard.gohtml +++ b/pkg/dashboard/templates/dashboard.gohtml @@ -105,7 +105,7 @@
{{ $category }}Score: {{ $summary.GetScore }}%
-

{{ getCategoryInfo $category }} Refer to the Polaris documentation about {{ $category }} for more information.

+

{{ getCategoryInfo $category }} Refer to the Polaris documentation about {{ $category }} for more information.

{{ end }} {{/* end range categories */}} @@ -159,7 +159,7 @@
  • {{ .Message }} - +
  • @@ -174,7 +174,7 @@
  • {{ .Message }} - +
  • @@ -190,7 +190,7 @@
  • {{ .Message }} - +