<%= gettext "Blocks" %>

<%= for block <- @blocks do %> <% end %>
<%= gettext "Height" %> <%= gettext "Age" %> <%= gettext "Transactions" %> <%= gettext "Gas Used" %>
<%= link(block.number, to: block_path(@conn, :show, @conn.assigns.locale, block.number), class: "blocks__link") %> <%= block.timestamp |> Timex.from_now %> <%= block.transactions |> Enum.count %> <%= block.gas_used |> Cldr.Number.to_string! %>

<%= gettext "Transactions" %>

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