Skip to content

Commit

Permalink
feat: Display status condition message on package details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryakoste committed Jul 10, 2024
1 parent 4bb10bf commit 971575f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/web/templates/components/pkg-detail-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,22 @@ <h1 class="text-reset m-0">
Auto-Update:
<strong>{{ .AutoUpdate }}</strong>
</span>
<span
class="badge p-1 fw-normal {{ if eq .Status.Status "Failed" }}bg-danger text-white border border-1 border-danger{{ else }}bg-body-secondary text-primary-emphasis border-primary border border-1 p-1 fw-normal{{ end }}"
data-bs-toggle="popover"
data-bs-title="Status"
data-bs-content="{{ .Status.Reason }}"
data-bs-html="true"
data-bs-trigger="focus"
tabindex="0">
Status: <strong>{{ .Status.Status }}</strong>
</span>
</div>
{{ if eq .Status.Status "Failed" }}
<div class="mt-2 alert alert-danger">
<div>{{ .Status.Message }}</div>
</div>
{{end}}
{{ end }}
</div>
</div>
Expand Down

0 comments on commit 971575f

Please sign in to comment.