Skip to content

Commit

Permalink
Update docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandoig committed Dec 9, 2020
1 parent b1ead66 commit 5d6446a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/dashboard/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions pkg/dashboard/templates/dashboard.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</div>
<div class="name"><span class="caret-expander"></span>{{ $category }}<span class="category-score">Score: <strong>{{ $summary.GetScore }}%</strong></span></div>
<div class="result-messages expandable-content">
<p class="category-info">{{ getCategoryInfo $category }} Refer to the <a href="details/{{ getCategoryLink $category }}">Polaris documentation about {{ $category }}</a> for more information.</p>
<p class="category-info">{{ getCategoryInfo $category }} Refer to the <a href="{{ getCategoryLink $category }}" target="_blank">Polaris documentation about {{ $category }}</a> for more information.</p>
</div>
</div>
{{ end }} {{/* end range categories */}}
Expand Down Expand Up @@ -159,7 +159,7 @@
<li class="{{ getResultClass . }}">
<i class="message-icon {{ getIcon $message }}"></i>
<span class="message">{{ .Message }}</span>
<a class="more-info" href="details/{{ getCategoryLink .Category }}">
<a class="more-info" href="{{ getCategoryLink .Category }}" target="_blank">
<i class="far fa-question-circle"></i>
</a>
</li>
Expand All @@ -174,7 +174,7 @@
<li class="{{ getResultClass . }}">
<i class="message-icon {{ getIcon $message }}"></i>
<span class="message">{{ .Message }}</span>
<a class="more-info" href="details/{{ getCategoryLink .Category }}">
<a class="more-info" href="{{ getCategoryLink .Category }}" target="_blank">
<i class="far fa-question-circle"></i>
</a>
</li>
Expand All @@ -190,7 +190,7 @@
<li class="{{ getResultClass . }}">
<i class="message-icon {{ getIcon $message }}"></i>
<span class="message">{{ .Message }}</span>
<a class="more-info" href="details/{{ getCategoryLink .Category }}">
<a class="more-info" href="{{ getCategoryLink .Category }}" target="_blank">
<i class="far fa-question-circle"></i>
</a>
</li>
Expand Down

0 comments on commit 5d6446a

Please sign in to comment.