diff --git a/apps/explorer_web/lib/explorer_web/templates/address_transaction/_transaction.html.eex b/apps/explorer_web/lib/explorer_web/templates/address_transaction/_transaction.html.eex index 213874f705..fd560391d7 100644 --- a/apps/explorer_web/lib/explorer_web/templates/address_transaction/_transaction.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/address_transaction/_transaction.html.eex @@ -18,6 +18,7 @@ <% end %> → + <%= if @address.hash == ExplorerWeb.TransactionView.to_address_hash(@transaction) do %> <%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction), contract: ExplorerWeb.AddressView.contract?(@transaction.to_address) %> <% else %> diff --git a/apps/explorer_web/lib/explorer_web/templates/block/overview.html.eex b/apps/explorer_web/lib/explorer_web/templates/block/overview.html.eex index d6cd32c15a..04e46c808f 100644 --- a/apps/explorer_web/lib/explorer_web/templates/block/overview.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/block/overview.html.eex @@ -11,9 +11,6 @@ <%= gettext "%{count} Transactions", count: @block_transaction_count %> - - 10 Contracts - <%= Cldr.Unit.new(:byte, @block.size) |> Cldr.Unit.to_string! %> @@ -28,7 +25,7 @@
<%= @block.number %>
- -- <%= gettext "Timestamp" %> - | -- (<%= formatted_timestamp(@block) %>) - | -
---|---|
- <%= gettext "Transaction" %> - | -- <%= gettext "%{count} transactions in this block", count: @block_transaction_count %> - | -
- <%= gettext "Hash" %> - | -- <%= @block.hash %> - | -
- <%= gettext "Parent Hash" %> - | -- <%= link( - @block.parent_hash, - to: block_path(@conn, :show, @conn.assigns.locale, @block.number - 1) - ) %> - | -
- <%= gettext "Miner" %> - | -- <%= @block.miner %> - | -
- <%= gettext "Difficulty" %> - | -- <%= @block.difficulty |> Cldr.Number.to_string! %> - | -
- <%= gettext "Total Difficulty" %> - | -- <%= @block.total_difficulty |> Cldr.Number.to_string! %> - | -
---|---|
- <%= gettext "Size" %> - | -- <%= Cldr.Unit.new(:byte, @block.size) |> Cldr.Unit.to_string! %> - | -
- <%= gettext "Gas Used" %> - | -- <%= @block.gas_used |> Cldr.Number.to_string! %> (<%= (@block.gas_used / @block.gas_limit) |> Cldr.Number.to_string!(format: "#.#%") %>) - | -
- <%= gettext "Gas Limit" %> - | -- <%= @block.gas_limit |> Cldr.Number.to_string! %> - | -
- <%= gettext "Nonce" %> - | -- <%= @block.nonce %> - | -
- <%= gettext "Status" %> - | -<%= gettext "Hash" %> | -<%= gettext "Block" %> | -<%= gettext "Age" %> | -<%= gettext "From" %> | -- | <%= gettext "To" %> | -<%= gettext "Value" %> | -
---|---|---|---|---|---|---|---|
- - | -- <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %> - | -- <%= link( - transaction.block, - to: block_path(@conn, :show, @conn.assigns.locale, transaction.block) - ) %> - | -- | - <%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %> - | -- | - <%= cond do %> - <% transaction.to_address_hash != nil -> %> - <%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.to_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.to_address), locale: @locale %> - <% 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 %> - | -- <%= ExplorerWeb.TransactionView.value(transaction) %> - | -
<%= gettext "There are no Transactions" %>
+