<%= gettext("Showing %{count} Pending Transactions", count: @transactions.total_entries) %>

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

<%= link(gettext("Transactions"), to: transaction_path(@conn, :index, @conn.assigns.locale), class: "transactions__tab-link") %>

<%= link(gettext("Pending"), to: pending_transaction_path(@conn, :index, @conn.assigns.locale), class: "transactions__tab-link transactions__tab-link--active") %>

<%= for transaction <- @transactions do %> <% end %>
<%= gettext "Hash" %> <%= gettext "Last Seen" %> <%= 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") %> <%= transaction.last_seen %> <%= if transaction.to_address_hash do %> <%= 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") %> <% else %> <%= gettext "Pending" %> <% end %> <%= if transaction.from_address_hash do %> <%= 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") %> <% else %> <%= gettext "Pending" %> <% end %> <%= Decimal.div(Decimal.new(transaction.value), Decimal.new(1_000_000_000_000_000_000)) |> Decimal.to_string(:normal) %> <%= gettext "POA" %>