Skip to content

Commit

Permalink
show epoch details even when epoch is 'unsynchronized'
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 17, 2023
1 parent cfa286b commit f6e5a75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/epoch/epoch.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,29 +175,29 @@ <h1 class="h4 my-3 mb-md-0 h1-pager">
<span class="badge rounded-pill text-bg-info">Genesis</span>
{{ else if $slot.Scheduled }}
<span class="badge rounded-pill text-bg-secondary">Scheduled</span>
{{ else if not $epoch.Synchronized }}
<span class="badge rounded-pill text-bg-secondary">?</span>
{{ else if eq $slot.Status 0 }}
<span class="badge rounded-pill text-bg-warning">Missed</span>
{{ else if eq $slot.Status 1 }}
<span class="badge rounded-pill text-bg-success">Proposed</span>
{{ else if eq $slot.Status 2 }}
<span class="badge rounded-pill text-bg-info">Orphaned</span>
{{ else if not $epoch.Synchronized }}
<span class="badge rounded-pill text-bg-secondary">?</span>
{{ else if eq $slot.Status 0 }}
<span class="badge rounded-pill text-bg-warning">Missed</span>
{{ else }}
<span class="badge rounded-pill text-bg-dark">Unknown</span>
{{ end }}
</td>
<td data-timer="{{ $slot.Ts.Unix }}"><span data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="{{ $slot.Ts }}">{{ formatRecentTimeShort $slot.Ts }}</span></td>
<td>{{ formatValidator $slot.Proposer $slot.ProposerName }}</td>
{{ if $epoch.Synchronized }}
<td>{{ formatValidator $slot.Proposer $slot.ProposerName }}</td>
<td class="d-none d-md-table-cell">{{ if not (eq $slot.Status 0) }}{{ $slot.AttestationCount }}{{ end }}</td>
<td>{{ if not (eq $slot.Status 0) }}{{ $slot.DepositCount }} / {{ $slot.ExitCount }}{{ end }}</td>
<td>{{ if not (eq $slot.Status 0) }}{{ $slot.ProposerSlashingCount }} / {{ $slot.AttesterSlashingCount }}{{ end }}</td>
<td>{{ if not (eq $slot.Status 0) }}{{ $slot.EthTransactionCount }}{{ end }}</td>
<td>{{ if not (eq $slot.Status 0) }}{{ formatFloat $slot.SyncParticipation 2 }}%{{ end }}</td>
<td>{{ if not (eq $slot.Status 0) }}{{ formatGraffiti $slot.Graffiti }}{{ end }}</td>
{{ else }}
<td colspan="7">Not indexed yet</td>
<td colspan="6">Not indexed yet</td>
{{ end }}

</tr>
Expand Down

0 comments on commit f6e5a75

Please sign in to comment.