Skip to content

Commit 79b49fc

Browse files
authored
Merge pull request #437 from ethpandaops/bbusa/show-validator-names
feat: add validator names to deposit pages
2 parents 1fad1a9 + d362922 commit 79b49fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

templates/included_deposits/included_deposits.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ <h1 class="h4 mb-1 mb-md-0">
5757
<input name="f.pubkey" type="text" class="form-control" placeholder="Public Key" aria-label="Public Key" aria-describedby="basic-addon1" value="{{ .FilterPubKey }}">
5858
</div>
5959
</div>
60-
<!--
6160
<div class="row mt-1">
6261
<div class="col-sm-12 col-md-6 col-lg-4">
6362
Validator Name
@@ -66,7 +65,6 @@ <h1 class="h4 mb-1 mb-md-0">
6665
<input name="f.vname" type="text" class="form-control" placeholder="Validator Name" aria-label="Validator Name" aria-describedby="basic-addon1" value="{{ .FilterValidatorName }}">
6766
</div>
6867
</div>
69-
-->
7068
<div class="row mt-1">
7169
<div class="col-sm-12 col-md-6 col-lg-4">
7270
Deposit Amount

templates/initiated_deposits/initiated_deposits.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ <h1 class="h4 mb-1 mb-md-0">
4141
<input name="f.pubkey" type="text" class="form-control" placeholder="Public Key" aria-label="Public Key" aria-describedby="basic-addon1" value="{{ .FilterPubKey }}">
4242
</div>
4343
</div>
44-
<!--
4544
<div class="row mt-1">
4645
<div class="col-sm-12 col-md-6 col-lg-4">
4746
Validator Name
@@ -50,7 +49,6 @@ <h1 class="h4 mb-1 mb-md-0">
5049
<input name="f.vname" type="text" class="form-control" placeholder="Validator Name" aria-label="Validator Name" aria-describedby="basic-addon1" value="{{ .FilterValidatorName }}">
5150
</div>
5251
</div>
53-
-->
5452
<div class="row mt-1">
5553
<div class="col-sm-12 col-md-6 col-lg-4">
5654
Deposit Amount
@@ -165,7 +163,11 @@ <h1 class="h4 mb-1 mb-md-0">
165163
<td>
166164
<div class="d-flex">
167165
<span class="flex-grow-1 text-truncate" style="max-width: 150px;">
168-
<a href="/validator/0x{{ printf "%x" $deposit.PublicKey }}">0x{{ printf "%x" $deposit.PublicKey }}</a>
166+
{{ if $deposit.ValidatorExists }}
167+
{{ formatValidatorWithIndex $deposit.ValidatorIndex $deposit.ValidatorName }}
168+
{{ else }}
169+
<a href="/validator/0x{{ printf "%x" $deposit.PublicKey }}">0x{{ printf "%x" $deposit.PublicKey }}</a>
170+
{{ end }}
169171
</span>
170172
<div>
171173
<i class="fa fa-copy text-muted ml-2 p-1" role="button" data-bs-toggle="tooltip" title="Copy to clipboard" data-clipboard-text="0x{{ printf "%x" $deposit.PublicKey }}"></i>

0 commit comments

Comments
 (0)