|
|
@ -28,10 +28,16 @@ |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<%= if @address.hash == @transaction.from_address_hash do %> |
|
|
|
<%= if transaction_from_or_to_current_address?(@transaction, @address.hash) do %> |
|
|
|
<span class="badge badge-danger tile-badge"><%= gettext "OUT" %></span> |
|
|
|
<%= if @transaction.from_address_hash == @address.hash do %> |
|
|
|
|
|
|
|
<span data-test="transaction_type" class="badge badge-danger tile-badge"> |
|
|
|
|
|
|
|
<%= gettext "OUT" %> |
|
|
|
|
|
|
|
</span> |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<span class="badge badge-success tile-badge"><%= gettext "IN" %></span> |
|
|
|
<span data-test="transaction_type" class="badge badge-success tile-badge"> |
|
|
|
|
|
|
|
<%= gettext "IN" %> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<span class="ml-1" data-from-now="<%= @transaction.block.timestamp %>"></span> |
|
|
|
<span class="ml-1" data-from-now="<%= @transaction.block.timestamp %>"></span> |
|
|
|
<span class="ml-1"> |
|
|
|
<span class="ml-1"> |
|
|
|