From 08df10f4ff60b4bbbd22976cb178926787b8c7eb Mon Sep 17 00:00:00 2001 From: Lucas Narciso Date: Mon, 13 Aug 2018 14:02:12 -0300 Subject: [PATCH] Make token symbol clickable in the Address page The link sends to the token's page. --- .../templates/address_transaction/_transaction.html.eex | 3 ++- .../templates/address_transaction/index.html.eex | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/_transaction.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/_transaction.html.eex index 353e270f47..3e006c6a0c 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/_transaction.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/_transaction.html.eex @@ -77,7 +77,8 @@ - <%= 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)) %>
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex index 0543cbf572..b3e28df25a 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex @@ -131,7 +131,7 @@

<%= gettext "Transactions" %>

<%= 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 %> <% else %>