From 2196450faaa047daa8d262859fcc932297072600 Mon Sep 17 00:00:00 2001 From: katibest Date: Tue, 26 Jun 2018 11:24:35 -0400 Subject: [PATCH] Removed conditional contract create code --- .../templates/chain/_transactions.html.eex | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex b/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex index dcdde1d146..8d479ac715 100644 --- a/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex @@ -18,20 +18,13 @@
<%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, address: transaction.from_address %> → - <%= cond do %> - <% transaction.to_address_hash != nil -> %> - <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, address: transaction.to_address %> - <% transaction.created_contract_address_hash != nil -> %> - - <%= link( - "Contract Creation", - class: "transaction__link", - "data-address-hash": transaction.created_contract_address_hash, - to: address_path(@conn, :show, @conn.assigns.locale, transaction.created_contract_address_hash), - title: transaction.created_contract_address_hash - ) %> - <% true -> %> - <% end %> + <%= link( + transaction.created_contract_address_hash, + class: "tile-label", + "data-address-hash": transaction.created_contract_address_hash, + to: address_path(@conn, :show, @conn.assigns.locale, transaction.created_contract_address_hash), + title: transaction.created_contract_address_hash + ) %>
<%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> POA @@ -59,20 +52,7 @@
<%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, address: transaction.from_address %> → - <%= cond do %> - <% transaction.to_address_hash != nil -> %> - <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, address: transaction.to_address %> - <% transaction.created_contract_address_hash != nil -> %> - - <%= link( - "Contract Creation", - class: "transaction__link", - "data-address-hash": transaction.created_contract_address_hash, - to: address_path(@conn, :show, @conn.assigns.locale, transaction.created_contract_address_hash), - title: transaction.created_contract_address_hash - ) %> - <% true -> %> - <% end %> + <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, address: transaction.to_address %>
<%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> POA