Skip to content

Commit

Permalink
feat: bit fix HTML status page for multiline message
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Apr 22, 2021
1 parent 649a81c commit 4dc5e57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporter/templates/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ <h2>{{ .Target }}</h2>
{{ if eq .Status "NO_DATA" }}<span class="status-bit no-data" title="no data">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><use xlink:href="#no-data-icon" /></svg>
</span>
{{ end }}{{ if eq .Status "UNKNOWN" }}<span class="status-bit unknown" title="{{ printf "unknown\n%s\n%s" .CheckedAt .Message }}">
{{ end }}{{ if eq .Status "UNKNOWN" }}<span class="status-bit unknown" title="{{ printf "unknown\n%s\n\n%s" .CheckedAt .Message }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><use xlink:href="#unknown-icon" /></svg>
</span>
{{ end }}{{ if eq .Status "FAILURE" }}<span class="status-bit failure" title="{{ printf "failure\n%s\n%s" .CheckedAt .Message }}">
{{ end }}{{ if eq .Status "FAILURE" }}<span class="status-bit failure" title="{{ printf "failure\n%s\n\n%s" .CheckedAt .Message }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><use xlink:href="#failure-icon" /></svg>
</span>
{{ end }}{{ if eq .Status "HEALTHY" }}<span class="status-bit healthy" title="{{ printf "healthy\n%s\n%s" .CheckedAt .Message }}">
{{ end }}{{ if eq .Status "HEALTHY" }}<span class="status-bit healthy" title="{{ printf "healthy\n%s\n\n%s" .CheckedAt .Message }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><use xlink:href="#healthy-icon" /></svg>
</span>
{{ end }}{{ end }}</div>
Expand Down

0 comments on commit 4dc5e57

Please sign in to comment.