Skip to content

Commit

Permalink
show client errors & refresh age as popover on clients/forks page
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 23, 2023
1 parent 5809f20 commit c9b310a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions templates/clients/clients.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ <h1 class="h4 mb-1 mb-md-0"><i class="fas fa-server mx-2"></i>Clients</h1>
</td>
<td>
{{ if eq $client.Status "ready" }}
<span class="badge rounded-pill text-bg-success">Connected</span>
<span class="badge rounded-pill text-bg-success">Ready</span>
{{ else if eq $client.Status "synchronizing" }}
<span class="badge rounded-pill text-bg-warning">Synchronizing</span>
<span class="badge rounded-pill text-bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}">Synchronizing</span>
{{ else if eq $client.Status "optimistic" }}
<span class="badge rounded-pill text-bg-info">Optimistic</span>
<span class="badge rounded-pill text-bg-info" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}">Optimistic</span>
{{ else if eq $client.Status "disconnected" }}
<span class="badge rounded-pill text-bg-secondary">Disconnected</span>
<span class="badge rounded-pill text-bg-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}, Error: {{ $client.LastError }}">Disconnected</span>
{{ else }}
<span class="badge rounded-pill text-bg-dark">{{ $client.Status }}</span>
{{ end }}
Expand Down
6 changes: 3 additions & 3 deletions templates/forks/forks.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ <h1 class="h4 mb-1 mb-md-0"><i class="fas fa-code-fork mx-2"></i>Forks</h1>
{{ if eq .Status "ready" }}
<span class="badge rounded-pill text-bg-success">Connected</span>
{{ else if eq .Status "synchronizing" }}
<span class="badge rounded-pill text-bg-warning">Synchronizing</span>
<span class="badge rounded-pill text-bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}">Synchronizing</span>
{{ else if eq .Status "optimistic" }}
<span class="badge rounded-pill text-bg-info">Optimistic</span>
<span class="badge rounded-pill text-bg-info" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}">Optimistic</span>
{{ else if eq .Status "disconnected" }}
<span class="badge rounded-pill text-bg-secondary">Disconnected</span>
<span class="badge rounded-pill text-bg-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Updated: {{ formatRecentTimeShort $client.LastRefresh }}, Error: {{ $client.LastError }}">Disconnected</span>
{{ else }}
<span class="badge rounded-pill text-bg-dark">{{ .Status }}</span>
{{ end }}
Expand Down

0 comments on commit c9b310a

Please sign in to comment.