<%= gettext("Address %{number}", number: @conn.params["address_id"]) %>

<%= pagination_links @conn, @transactions, ["en", @conn.params["address_id"]], view_style: :bulma, first: true, distance: 1, previous: Phoenix.HTML.raw("‹"), next: Phoenix.HTML.raw("›"), path: &address_transaction_to_path/5 %>

<%= link(gettext("Overview"), to: address_path(@conn, :show, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link") %>

<%= link(gettext("Transactions To"), to: address_transaction_to_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link") %>

<%= link(gettext("Transactions From"), to: address_transaction_from_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link address__link--active") %>

<%= for transaction <- @transactions do %> <% end %>
<%= gettext "Status" %> <%= gettext "Hash" %> <%= gettext "Block" %> <%= gettext "Age" %> <%= gettext "From" %> <%= gettext "To" %> <%= gettext "Value" %>
<%= link(transaction.hash, to: transaction_path(@conn, :show, @conn.assigns.locale, transaction.hash), class: "transactions__link transactions__link--truncated transactions__link--long-hash") %>
<%= link(transaction.block.number, to: block_path(@conn, :show, @conn.assigns.locale, transaction.block.number), class: "transactions__link") %> <%= transaction.block.timestamp |> Timex.from_now %>
<%= link(transaction.from_address.hash, to: address_path(@conn, :show, @conn.assigns.locale, transaction.from_address.hash), class: "transactions__link transactions__link--truncated transactions__link--hash") %>
<%= link(transaction.to_address.hash, to: address_path(@conn, :show, @conn.assigns.locale, transaction.to_address.hash), class: "transactions__link transactions__link--truncated transactions__link--hash") %>
<%= Decimal.div(Decimal.new(transaction.value), Decimal.new(1_000_000_000_000_000_000)) |> Decimal.to_string(:normal) %> <%= gettext "POA" %>