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.
52 lines
4.2 KiB
52 lines
4.2 KiB
7 years ago
|
<section class="container__section block">
|
||
|
<div class="address__headline">
|
||
7 years ago
|
<h1 class="address__headline-title"><%= gettext("Address %{number}", number: @conn.params["address_id"]) %></h1>
|
||
7 years ago
|
<div class="address__pagination"><%= 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 %></div>
|
||
7 years ago
|
</div>
|
||
|
<div class="address__container">
|
||
|
<div class="address__tabs">
|
||
|
<h2 class="address__tab"><%= link(gettext("Overview"), to: address_path(@conn, :show, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link") %></h2>
|
||
7 years ago
|
<h2 class="address__tab"><%= link(gettext("Transactions To"), to: address_transaction_to_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link") %></h2>
|
||
|
<h2 class="address__tab address__tab--active"><%= link(gettext("Transactions From"), to: address_transaction_from_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), class: "address__link address__link--active") %></h2>
|
||
7 years ago
|
</div>
|
||
|
<div class="transactions__container">
|
||
|
<table class="transactions__table">
|
||
|
<thead class="transactions__header">
|
||
|
<tr>
|
||
|
<th class="transactions__column-header transactions__column-header--status"><span class="transactions__column-title transactions__column-title--status"><%= gettext "Status" %></span></th>
|
||
|
<th class="transactions__column-header"><%= gettext "Hash" %></th>
|
||
|
<th class="transactions__column-header transactions__column-header--optional"><%= gettext "Block" %></th>
|
||
|
<th class="transactions__column-header"><%= gettext "Age" %></th>
|
||
|
<th class="transactions__column-header transactions__column-header--optional"><%= gettext "From" %></th>
|
||
|
<th class="transactions__column-header transactions__column-header--optional"><%= gettext "To" %></th>
|
||
|
<th class="transactions__column-header"><%= gettext "Value" %></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<%= for transaction <- @transactions do %>
|
||
|
<tr class="transactions__row">
|
||
|
<td class="transactions__column transactions__column--status"><div class="transactions__dot transactions__dot--<%= transaction.status %>"></div></td>
|
||
|
<td class="transactions__column transactions__column--hash">
|
||
|
<div class="transactions__hash"><%= link(transaction.hash, to: transaction_path(@conn, :show, @conn.assigns.locale, transaction.hash), class: "transactions__link transactions__link--truncated transactions__link--long-hash") %></div>
|
||
|
</td>
|
||
|
<td class="transactions__column transactions__column--block transactions__column--optional">
|
||
|
<%= link(transaction.block.number, to: block_path(@conn, :show, @conn.assigns.locale, transaction.block.number), class: "transactions__link") %>
|
||
|
</td>
|
||
|
<td class="transactions__column transactions__column--age">
|
||
|
<%= transaction.block.timestamp |> Timex.from_now %>
|
||
|
</td>
|
||
|
<td class="transactions__column transactions__column--from transactions__column--optional">
|
||
|
<div class="transactions__hash"><%= 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") %></div>
|
||
|
</td>
|
||
|
<td class="transactions__column transactions__column--to transactions__column--optional">
|
||
|
<div class="transactions__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") %></div>
|
||
|
</td>
|
||
|
<td class="transactions__column transactions__column--value"><%= Decimal.div(Decimal.new(transaction.value), Decimal.new(1_000_000_000_000_000_000)) |> Decimal.to_string(:normal) %> <%= gettext "POA" %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|