Skip to content

Commit

Permalink
Update UI for non-controller types
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandoig committed Jan 4, 2021
1 parent f5a1ad6 commit 6e93b79
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions pkg/dashboard/templates/dashboard.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<strong>{{ .Name }}</strong></div>

<div class="result-messages expandable-content">
<h4>Controller Spec:</h4>
<h4>Spec:</h4>
<ul class="message-list">
{{ range $message := .Results.GetSortedResults }}
<li class="{{ getResultClass . }}">
Expand All @@ -167,20 +167,22 @@
</ul>
</div>

<div class="result-messages expandable-content">
<h4>Pod Spec:</h4>
<ul class="message-list">
{{ range $message := .PodResult.Results.GetSortedResults }}
<li class="{{ getResultClass . }}">
<i class="message-icon {{ getIcon $message }}"></i>
<span class="message">{{ .Message }}</span>
<a class="more-info" href="{{ getCategoryLink .Category }}" target="_blank">
<i class="far fa-question-circle"></i>
</a>
</li>
{{ end }}
</ul>
</div>
{{ if .PodResult }}
<div class="result-messages expandable-content">
<h4>Pod Spec:</h4>
<ul class="message-list">
{{ range $message := .PodResult.Results.GetSortedResults }}
<li class="{{ getResultClass . }}">
<i class="message-icon {{ getIcon $message }}"></i>
<span class="message">{{ .Message }}</span>
<a class="more-info" href="{{ getCategoryLink .Category }}" target="_blank">
<i class="far fa-question-circle"></i>
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}

{{ range .PodResult.ContainerResults }}
<div class="result-messages expandable-content">
Expand Down

0 comments on commit 6e93b79

Please sign in to comment.