<%= gettext("Showing #%{number}", number: @conn.params["block_id"]) %>

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

<%= link(gettext("Overview"), to: block_path(@conn, :show, @conn.assigns.locale, @conn.params["block_id"]), class: "block__link") %>

<%= link(gettext("Transactions"), to: block_transaction_path(@conn, :index, @conn.assigns.locale, @conn.params["block_id"]), class: "block__link block__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" %>