Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/lib/explorer_web/templates/page/index.html.eex

50 lines
1.7 KiB

<div><%= gettext "explorer-welcome" %></div>
<div class="blocks">
<div class="blocks__title"><%= gettext "blocks-title" %></div>
<table class="blocks__table">
<thead class="blocks__header">
<tr>
<th><%= gettext "Height" %></th>
<th><%= gettext "Age" %></th>
<th><%= gettext "Transactions" %></th>
<th><%= gettext "Gas Used" %></th>
</tr>
</thead>
<tbody>
<%= for block <- @blocks do %>
<tr class="blocks__row">
<td class="blocks__column--height"><%= block.number %></td>
<td class="blocks__column--age"><%= block.age %></td>
<td class="blocks__column--transactions_count"><%= block.transactions_count %></td>
<td class="blocks__column--gas-used"><%= block.gas_used %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<div class="transactions">
<div class="transactions__title"><%= gettext "Transactions" %></div>
<table class="transactions__table">
<thead class="transactions__header">
<tr>
<th><%= gettext "Hash" %></th>
<th><%= gettext "Block" %></th>
<th><%= gettext "Age" %></th>
<th><%= gettext "Value" %></th>
</tr>
</thead>
<tbody>
<%= for transaction <- @transactions do %>
<tr class="transactions__row">
<td class="transactions__column--hash"><%= transaction.hash %></td>
<td class="transactions__column--block"><%= transaction.block.number %></td>
<td class="transactions__column--age"><%= transaction.block.timestamp |> Timex.from_now %></td>
<td class="transactions__column--value"><%= transaction.value %></td>
</tr>
<% end %>
</tbody>
</table>
</div>