-
-
-
- <%= render "_values.html", address: @address, exchange_rate: @exchange_rate, transaction_count: @transaction_count %>
-
-
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex b/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex
new file mode 100644
index 0000000000..50e96b91ed
--- /dev/null
+++ b/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex
@@ -0,0 +1,31 @@
+
+
+
+ <%= gettext("Internal Transaction") %>
+
+
+ <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @internal_transaction.transaction_hash %>
+
+ <%= if @address.hash == @internal_transaction.from_address_hash do %>
+ <%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: @internal_transaction.from_address_hash %>
+ <% else %>
+ <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@internal_transaction.from_address), address_hash: @internal_transaction.from_address_hash %>
+ <% end %>
+ →
+ <%= if @address.hash == ExplorerWeb.InternalTransactionView.to_address_hash(@internal_transaction) do %>
+ <%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: ExplorerWeb.InternalTransactionView.to_address_hash(@internal_transaction) %>
+ <% else %>
+ <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@internal_transaction.to_address), address_hash: ExplorerWeb.InternalTransactionView.to_address_hash(@internal_transaction) %>
+ <% end %>
+
+ <%= ExplorerWeb.TransactionView.value(@internal_transaction, include_label: false) %> POA
+
+
+ <%= if @address.hash == @internal_transaction.from_address_hash do %>
+ OUT
+ <% else %>
+ IN
+ <% end %>
+
+
+
diff --git a/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex b/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
index 5a6796a62b..9b62af2122 100644
--- a/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
+++ b/apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
@@ -1,11 +1,13 @@
-
+
<%= render ExplorerWeb.AddressView, "overview.html", assigns %>
@@ -75,52 +108,15 @@
) %>
+
<%= gettext "Internal Transactions" %>
<%= if Enum.count(@internal_transactions) > 0 do %>
-
-
- <%= gettext "Parent Tx Hash" %> |
- <%= gettext "Block" %> |
- <%= gettext "Age" %> |
- <%= gettext "From" %> |
- <%= gettext "To" %> |
- <%= gettext "Value" %> (<%= gettext "Ether" %>) |
-
- <%= for internal_transaction <- @internal_transactions do %>
-
-
-
- <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: internal_transaction.transaction_hash %>
- |
-
- <%= link(internal_transaction.transaction.block,
- to: block_path(@conn, :show, @conn.assigns.locale, internal_transaction.transaction.block)
- ) %>
- |
- |
-
- <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(internal_transaction.from_address), address_hash: internal_transaction.from_address_hash %>
- |
-
- <%= if ExplorerWeb.InternalTransactionView.create?(internal_transaction) do %>
-
- <%= link(
- gettext("Contract Creation"),
- class: "transaction__link",
- "data-address-hash": internal_transaction.created_contract_address_hash,
- to: address_path(ExplorerWeb.Endpoint, :show, @locale, internal_transaction.created_contract_address_hash),
- title: internal_transaction.created_contract_address_hash
- ) %>
- <% else %>
- <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(internal_transaction.to_address), address_hash: internal_transaction.to_address_hash %>
- <% end %>
- |
- <%= ExplorerWeb.TransactionView.value(internal_transaction, include_label: false) %> |
-
-
- <% end %>
-
+ <%= for internal_transaction <- @internal_transactions do %>
+ <%= render "_internal_transaction.html", locale: @locale, address: @address, internal_transaction: internal_transaction %>
+ <% end %>
<% else %>
-
<%= gettext "There are no Internal Transactions" %>
+
+ <%= gettext "There are no internal transactions for this address." %>
+
<% end %>
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 72a6e64d99..ac601cf664 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
@@ -1,35 +1,36 @@
-
- |
-
- <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @transaction.hash %>
- |
-
- <%= link(
- @transaction.block,
- to: block_path(ExplorerWeb.Endpoint, :show, @locale, @transaction.block)
- ) %>
- |
- |
-
- <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@transaction.from_address), address_hash: @transaction.from_address_hash %>
- |
- |
-
- <%= cond do %>
- <% @transaction.to_address_hash != nil -> %>
- <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@transaction.to_address), address_hash: @transaction.to_address_hash %>
- <% @transaction.created_contract_address_hash != nil -> %>
-
- <%= link(
- gettext("Contract Creation"),
- class: "transaction__link",
- "data-address-hash": @transaction.created_contract_address_hash,
- to: address_path(ExplorerWeb.Endpoint, :show, @locale, @transaction.created_contract_address_hash),
- title: @transaction.created_contract_address_hash
- ) %>
- <% true -> %>
- <% end %>
- |
- <%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> |
- <%= ExplorerWeb.TransactionView.formatted_fee(@transaction, denomination: :ether) %> |
-
+
+
+
+ <%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %>
+
+
+ <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @transaction.hash %>
+
+ <%= if @address.hash == @transaction.from_address_hash do %>
+ <%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: @transaction.from_address_hash %>
+ <% else %>
+ <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@transaction.from_address), address_hash: @transaction.from_address_hash %>
+ <% 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) %>
+ <% else %>
+ <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(@transaction.to_address), address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction) %>
+ <% end %>
+
+ <%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> POA
+
+
+ <%= if @address.hash == @transaction.from_address_hash do %>
+ OUT
+ <% else %>
+ IN
+ <% end %>
+
+ <%= link(
+ gettext("Block #") <> "#{@transaction.block.number}",
+ to: block_path(ExplorerWeb.Endpoint, :show, @locale, @transaction.block)
+ ) %>
+
+
+
diff --git a/apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex b/apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex
index bdd4e75deb..146de72031 100644
--- a/apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex
+++ b/apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex
@@ -1,11 +1,13 @@
-
+
<%= render ExplorerWeb.AddressView, "overview.html", assigns %>
+
-
+
-
+
<%= if Enum.count(@transactions) > 0 do %>
-
-
-
-
- <%= gettext "Status" %>
- |
- <%= gettext "Hash" %> |
- <%= gettext "Block" %> |
- <%= gettext "Age" %> |
- <%= gettext "From" %> |
- |
- <%= gettext "To" %> |
- <%= gettext "Value" %> (<%= gettext "Ether" %>) |
- <%= gettext "Fee" %> |
-
-
-
- <%= for transaction <- @transactions do %>
- <%= render "_transaction.html", locale: @locale, transaction: transaction %>
- <% end %>
-
-
+
<%= gettext "Transactions" %>
+
+ <%= for transaction <- @transactions do %>
+ <%= render "_transaction.html", locale: @locale, address: @address, transaction: transaction %>
+ <% end %>
+
<% else %>
-
<%= gettext "There are no Transactions" %>
+
+ <%= gettext "There are no transactions for this address." %>
+
<% end %>
diff --git a/apps/explorer_web/lib/explorer_web/templates/block_transaction/index.html.eex b/apps/explorer_web/lib/explorer_web/templates/block_transaction/index.html.eex
index 4454eaf609..bbb0ffdf42 100644
--- a/apps/explorer_web/lib/explorer_web/templates/block_transaction/index.html.eex
+++ b/apps/explorer_web/lib/explorer_web/templates/block_transaction/index.html.eex
@@ -147,7 +147,7 @@
<%= for transaction <- @transactions do %>
-
+
|
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 e8a0953b90..903b89d261 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
@@ -3,7 +3,7 @@
<%= link(gettext("View All Transactions →"), to: transaction_path(@conn, :index, Gettext.get_locale), class: "button button--secondary button--xsmall float-right") %>
<%= gettext "Transactions" %>
<%= for transaction <- @chain.transactions do %>
-
+
<%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %>
@@ -13,7 +13,7 @@
<%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), address_hash: transaction.from_address_hash %>
→
- <%= render ExplorerWeb.AddressView, "_link.html", ExplorerWeb.TransactionView.display_to_address(transaction, locale: @locale, contract: ExplorerWeb.AddressView.contract?(transaction.to_address)) %>
+ <%= render ExplorerWeb.AddressView, "_link.html", locale: @locale, contract: ExplorerWeb.AddressView.contract?(transaction.to_address), address_hash: ExplorerWeb.TransactionView.to_address_hash(transaction) %>
<%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> POA
diff --git a/apps/explorer_web/lib/explorer_web/templates/layout/_footer.html.eex b/apps/explorer_web/lib/explorer_web/templates/layout/_footer.html.eex
index 37938552be..f1494e4608 100644
--- a/apps/explorer_web/lib/explorer_web/templates/layout/_footer.html.eex
+++ b/apps/explorer_web/lib/explorer_web/templates/layout/_footer.html.eex
@@ -1,16 +1,16 @@