|
|
@ -1,6 +1,8 @@ |
|
|
|
<section class="container"> |
|
|
|
<section class="container"> |
|
|
|
<div class="card"> |
|
|
|
<div class="card"> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="card-header"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DESKTOP TAB NAV --> |
|
|
|
<ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex"> |
|
|
|
<ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex"> |
|
|
|
<li class="nav-item"> |
|
|
|
<li class="nav-item"> |
|
|
|
<%= link( |
|
|
|
<%= link( |
|
|
@ -18,6 +20,26 @@ |
|
|
|
) %> |
|
|
|
) %> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MOBILE DROPDOWN NAV --> |
|
|
|
|
|
|
|
<ul class="nav nav-tabs card-header-tabs d-md-none"> |
|
|
|
|
|
|
|
<li class="nav-item dropdown flex-fill text-center"> |
|
|
|
|
|
|
|
<a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><%= gettext("Validated") %></a> |
|
|
|
|
|
|
|
<div class="dropdown-menu"> |
|
|
|
|
|
|
|
<%= link( |
|
|
|
|
|
|
|
gettext("Validated"), |
|
|
|
|
|
|
|
class: "dropdown-item", |
|
|
|
|
|
|
|
to: transaction_path(@conn, :index, @conn.assigns.locale) |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
<%= link( |
|
|
|
|
|
|
|
gettext("Pending"), |
|
|
|
|
|
|
|
class: "dropdown-item", |
|
|
|
|
|
|
|
"data-test": "pending_transactions_link", |
|
|
|
|
|
|
|
to: pending_transaction_path(@conn, :index, @conn.assigns.locale) |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="card-body"> |
|
|
|
<div class="card-body"> |
|
|
@ -26,14 +48,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
<%= for transaction <- @transactions do %> |
|
|
|
<%= for transaction <- @transactions do %> |
|
|
|
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %> tile-status--<%= ExplorerWeb.TransactionView.status(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>"> |
|
|
|
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %> tile-status--<%= ExplorerWeb.TransactionView.status(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>"> |
|
|
|
<div class="row" data-test="chain_transaction"> |
|
|
|
<div class="row justify-content-end" data-test="chain_transaction"> |
|
|
|
<div class="col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center"> |
|
|
|
<div class="col-md-3 col-lg-2 d-flex align-items-lg-center"> |
|
|
|
<div class="ml-4"> |
|
|
|
<div class="d-flex flex-md-column ml-md-4"> |
|
|
|
<span class="tile-label" data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span> |
|
|
|
<span class="tile-label mr-1 mr-md-0" data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span> |
|
|
|
<div class="tile-status-label" data-test="transaction_status"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div> |
|
|
|
<div class="tile-status-label" data-test="transaction_status"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-7 col-lg-8 d-flex flex-column"> |
|
|
|
<div class="col-md-9 col-lg-7 d-flex flex-column"> |
|
|
|
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %> |
|
|
|
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %> |
|
|
|
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %> |
|
|
@ -50,8 +72,8 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start text-md-right"> |
|
|
|
<div class="col-md-9 col-lg-3 d-flex flex-column flex-md-row flex-lg-column justify-content-start text-lg-right mt-3 mt-lg-0"> |
|
|
|
<span class="tile-title"><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %></span> |
|
|
|
<span class="tile-title mr-1 mr-lg-0"><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %></span> |
|
|
|
<span> <%= ExplorerWeb.TransactionView.formatted_fee(transaction, denomination: :ether) %> <%= gettext "Fee" %></span> |
|
|
|
<span> <%= ExplorerWeb.TransactionView.formatted_fee(transaction, denomination: :ether) %> <%= gettext "Fee" %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|