Make token symbol clickable in the Address page

The link sends to the token's page.
pull/542/head
Lucas Narciso 6 years ago committed by Luke Imhoff
parent b357f38786
commit 08df10f4ff
  1. 3
      apps/block_scout_web/lib/block_scout_web/templates/address_transaction/_transaction.html.eex
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex

@ -77,7 +77,8 @@
</span>
</span>
<span class="tile-title">
<%= token_transfer_amount(token_transfer) %> <%= token_symbol(token_transfer.token) %>
<%= token_transfer_amount(token_transfer) %>
<%= link(token_symbol(token_transfer.token), to: token_path(@conn, :show, @locale, token_transfer.token.contract_address_hash)) %>
</span>
</div>
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column align-items-end">

@ -131,7 +131,7 @@
<h2 class="card-title"><%= gettext "Transactions" %></h2>
<span data-selector="transactions-list">
<%= for transaction <- @transactions do %>
<%= render("_transaction.html", locale: @locale, address: @address, transaction: transaction) %>
<%= render("_transaction.html", locale: @locale, address: @address, transaction: transaction, conn: @conn) %>
<% end %>
</span>
<% else %>

Loading…
Cancel
Save