From f9f35bacbc7deda800a41b45c70431e2b140faf4 Mon Sep 17 00:00:00 2001 From: nikitosing Date: Wed, 1 Sep 2021 11:15:23 +0300 Subject: [PATCH] Add status to Position pane --- CHANGELOG.md | 1 + .../block_scout_web/templates/transaction/overview.html.eex | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36cf2acfd4..90106063c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex index 029894cdb6..7ec051a627 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex @@ -335,7 +335,7 @@ <% gas_used_perc = gas_used_perc(@transaction) %>
<%= gas_used(@transaction) %> <%= if gas_used_perc, do: "| #{gas_used_perc}%" %>
- +
<%= 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" %>
-
<%= @transaction.nonce %><%= @transaction.index %>
+
<%= @transaction.nonce %><%= if block, do: @transaction.index, else: formatted_result(status) %>
<%= unless value_transfer?(@transaction) do %>