add contract link on token page

pull/699/head
Gustavo Santos Ferreira 6 years ago
parent 9d8c4d5089
commit 9550c31ccf
  1. 8
      apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/tokens/token/show.html.eex

@ -26,6 +26,14 @@
<h3><%= to_string(@token.contract_address_hash) %></h3>
<div class="d-flex flex-row justify-content-start text-muted">
<span class="mr-4">
<%= link to:
address_path(BlockScoutWeb.Endpoint, :show, @token.contract_address_hash),
"data-test": "token_contract_address"
do %>
<%= gettext "Contract" %>
<% end %>
</span>
<span class="mr-4"> <%= @token.type %> </span>
<span class="mr-4"><%= @total_token_holders %> <%= gettext "addresses" %></span>
<span class="mr-4"><%= @total_token_transfers %> <%= gettext "Transfers" %></span>

@ -4,7 +4,9 @@
"_details.html",
token: @token,
total_token_transfers: @total_token_transfers,
total_token_holders: @total_token_holders
total_token_holders: @total_token_holders,
total_address_in_token_transfers: @total_address_in_token_transfers,
conn: @conn
) %>
<section>

Loading…
Cancel
Save