diff --git a/apps/block_scout_web/assets/css/components/stakes/_stakes.scss b/apps/block_scout_web/assets/css/components/stakes/_stakes.scss index 7334e5211a..a01e58efea 100644 --- a/apps/block_scout_web/assets/css/components/stakes/_stakes.scss +++ b/apps/block_scout_web/assets/css/components/stakes/_stakes.scss @@ -93,6 +93,11 @@ $stakes-stats-item-border-color: #fff !default; .stakes-tr-banned & { color: $stakes-banned-color; } + + a { + text-decoration: none; + color: $stakes-address-color; + } } .stakes-address-active { diff --git a/apps/block_scout_web/lib/block_scout_web/channels/stakes_channel.ex b/apps/block_scout_web/lib/block_scout_web/channels/stakes_channel.ex index 5a26b0158e..98127830cf 100644 --- a/apps/block_scout_web/lib/block_scout_web/channels/stakes_channel.ex +++ b/apps/block_scout_web/lib/block_scout_web/channels/stakes_channel.ex @@ -75,6 +75,7 @@ defmodule BlockScoutWeb.StakesChannel do View.render_to_string(StakesView, "_stakes_modal_delegators_list.html", account: socket.assigns[:account], pool: pool, + conn: socket, delegators: delegators, token: token, show_snapshotted_data: show_snapshotted_data diff --git a/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex index 7604a1d56a..305250871b 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex @@ -47,7 +47,11 @@
- <%= BlockScoutWeb.AddressView.trimmed_hash(delegator.delegator_address_hash) %> + <%= link( + BlockScoutWeb.AddressView.trimmed_hash(delegator.delegator_address_hash), + to: address_path(@conn, :show, delegator.delegator_address_hash), + target: "_blank" + ) %> <%= if delegator.delegator_address_hash == @pool.staking_address_hash and @pool.is_validator do %> <%= render BlockScoutWeb.CommonComponentsView, "_check_tooltip.html", text: gettext("This is a validator") %>