|
|
@ -1,12 +1,8 @@ |
|
|
|
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(@transaction) %> fade-in" data-transaction-hash="<%= @transaction.hash %>"> |
|
|
|
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(@transaction) %> fade-in" data-transaction-hash="<%= @transaction.hash %>"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-2 d-flex align-items-center justify-content-start justify-content-lg-center tile-label"> |
|
|
|
<div class="pl-5 col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center tile-label"> |
|
|
|
<div class="col-md-1" data-test="transaction_status"> |
|
|
|
<%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %> |
|
|
|
<div class="transaction__dot transaction__dot--<%= status(@transaction) %>" data-toggle="tooltip" title="<%= formatted_status(@transaction) %>"></div> |
|
|
|
<div data-test="transaction_status" class="text-muted"><%= formatted_status(@transaction) %></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-11"> |
|
|
|
|
|
|
|
<%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-7 col-lg-8 d-flex flex-column"> |
|
|
|
<div class="col-md-7 col-lg-8 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 %> |
|
|
@ -16,6 +12,7 @@ |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<%= 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 %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
→ |
|
|
|
→ |
|
|
|
<%= if @address.hash == ExplorerWeb.TransactionView.to_address_hash(@transaction) do %> |
|
|
|
<%= if @address.hash == ExplorerWeb.TransactionView.to_address_hash(@transaction) do %> |
|
|
|
<%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction), contract: ExplorerWeb.AddressView.contract?(@transaction.to_address) %> |
|
|
|
<%= render ExplorerWeb.AddressView, "_responsive_hash.html", address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction), contract: ExplorerWeb.AddressView.contract?(@transaction.to_address) %> |
|
|
@ -23,19 +20,26 @@ |
|
|
|
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction), contract: ExplorerWeb.AddressView.contract?(@transaction.to_address), locale: @locale %> |
|
|
|
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: ExplorerWeb.TransactionView.to_address_hash(@transaction), contract: ExplorerWeb.AddressView.contract?(@transaction.to_address), locale: @locale %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> POA |
|
|
|
<span> |
|
|
|
|
|
|
|
<%= if @address.hash == @transaction.from_address_hash do %> |
|
|
|
|
|
|
|
<span class="badge badge-danger tile-badge">Out</span> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<span class="badge badge-success tile-badge">In</span> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<span class="ml-1" data-from-now="<%= @transaction.block.timestamp %>"></span> |
|
|
|
|
|
|
|
<span class="ml-1"> |
|
|
|
|
|
|
|
<%= link( |
|
|
|
|
|
|
|
gettext("Block #") <> "#{@transaction.block.number}", |
|
|
|
|
|
|
|
to: block_path(ExplorerWeb.Endpoint, :show, @locale, @transaction.block) |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start justify-content-md-end align-items-end text-md-right"> |
|
|
|
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start align-items-end text-md-right"> |
|
|
|
<%= if @address.hash == @transaction.from_address_hash do %> |
|
|
|
<span class="tile-title"> |
|
|
|
<span class="badge badge-warning tile-badge mr-2 mr-md-0">OUT</span> |
|
|
|
<%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> POA |
|
|
|
<% else %> |
|
|
|
</span> |
|
|
|
<span class="badge badge-success tile-badge mr-2 mr-md-0">IN</span> |
|
|
|
<span class="mr-2 mr-sm-0 text-muted"> <%= ExplorerWeb.TransactionView.formatted_fee(@transaction, denomination: :ether) %> <%= gettext "Fee" %></span> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<span class="mr-2 mr-sm-0" data-from-now="<%= @transaction.block.timestamp %>"></span> |
|
|
|
|
|
|
|
<%= link( |
|
|
|
|
|
|
|
gettext("Block #") <> "#{@transaction.block.number}", |
|
|
|
|
|
|
|
to: block_path(ExplorerWeb.Endpoint, :show, @locale, @transaction.block) |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|