Merge pull request #4593 from blockscout/np-add-status-for-pending-txs

Add status to Position pane
pull/4520/head
Victor Baranov 3 years ago committed by GitHub
commit 928c3fc507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex

@ -1,6 +1,7 @@
## Current
### Features
- [#4593](https://github.com/blockscout/blockscout/pull/4593) - Add status in `Position` pane for txs have no block
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector
### Fixes

@ -335,7 +335,7 @@
<% gas_used_perc = gas_used_perc(@transaction) %>
<dd class="col-sm-9 col-lg-10"> <%= gas_used(@transaction) %> <%= if gas_used_perc, do: "| #{gas_used_perc}%" %></dd>
</dl>
<!-- Nonce -->
<!-- Nonce, Index in Block -->
<dl class="row">
<dt class="col-sm-3 col-lg-2 text-muted">
<%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
@ -344,7 +344,7 @@
data-toggle="tooltip"
title="<%= gettext("Index position of Transaction in the block.") %>"><%= gettext "Position" %></span>
</dt>
<dd class="col-sm-9 col-lg-10"> <%= @transaction.nonce %><span class="index-label ml-2"><%= @transaction.index %></span> </dd>
<dd class="col-sm-9 col-lg-10"> <%= @transaction.nonce %><span class="index-label ml-2"><%= if block, do: @transaction.index, else: formatted_result(status) %></span> </dd>
</dl>
<%= unless value_transfer?(@transaction) do %>
<dl class="row">

Loading…
Cancel
Save