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> </span>
<span class="tile-title"> <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> </span>
</div> </div>
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column align-items-end"> <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> <h2 class="card-title"><%= gettext "Transactions" %></h2>
<span data-selector="transactions-list"> <span data-selector="transactions-list">
<%= for transaction <- @transactions do %> <%= 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 %> <% end %>
</span> </span>
<% else %> <% else %>

Loading…
Cancel
Save