Re-use _btn_copy.html for raw trace page

pull/6045/head
Viktor Baranov 2 years ago
parent c8b074f35b
commit 7073696c0c
  1. 1
      CHANGELOG.md
  2. 1
      ISSUE_TEMPLATE.md
  3. 22
      apps/block_scout_web/lib/block_scout_web/templates/transaction_raw_trace/index.html.eex
  4. 5
      apps/block_scout_web/priv/gettext/default.pot
  5. 5
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -33,6 +33,7 @@
### Chore ### Chore
- [#6045](https://github.com/blockscout/blockscout/pull/6045) - Re-use _btn_copy.html for raw trace page
- [#6035](https://github.com/blockscout/blockscout/pull/6035) - Hide copy btn if no raw trace - [#6035](https://github.com/blockscout/blockscout/pull/6035) - Hide copy btn if no raw trace
- [#6034](https://github.com/blockscout/blockscout/pull/6034) - Suppress empty sections in supported chain dropdown - [#6034](https://github.com/blockscout/blockscout/pull/6034) - Suppress empty sections in supported chain dropdown
- [#5939](https://github.com/blockscout/blockscout/pull/5939) - Bump sweetalert2 from 11.4.26 to 11.4.27 in /apps/block_scout_web/assets - [#5939](https://github.com/blockscout/blockscout/pull/5939) - Bump sweetalert2 from 11.4.26 to 11.4.27 in /apps/block_scout_web/assets

@ -7,6 +7,7 @@
* Node JS version (`node -v`): * Node JS version (`node -v`):
* Operating System: * Operating System:
* Blockscout Version/branch/commit: * Blockscout Version/branch/commit:
* Archive node type && version (Erigon/Geth/Nethermind/Ganache/?):
### Steps to reproduce ### Steps to reproduce

@ -6,20 +6,14 @@
<div class="card-body"> <div class="card-body">
<h2 class="card-title"><%= gettext "Raw Trace" %> <h2 class="card-title"><%= gettext "Raw Trace" %>
<%= if Enum.count(@internal_transactions) > 0 do %> <%= if Enum.count(@internal_transactions) > 0 do %>
<span <% raw_trace_text = for {line, _} <- raw_traces_with_lines(@internal_transactions), do: line %>
aria-label="Copy Value" <%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html",
class="btn-copy-icon tx-raw-input transaction-input" id: "tx-raw-trace-input",
id="tx-raw-input" additional_classes: ["tx-raw-input", "transaction-input"],
data-clipboard-text="<%= for {line, _} <- raw_traces_with_lines(@internal_transactions), do: line %>" clipboard_text: raw_trace_text,
data-placement="top" aria_label: gettext("Copy Value"),
data-toggle="tooltip" title: gettext("Copy Raw Trace"),
title='<%= gettext("Copy Raw Trace") %>' style: "float: right;" %>
style="float: right;"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 32.5" width="32" height="32">
<path fill-rule="evenodd" d="M23.5 20.5a1 1 0 0 1-1-1v-9h-9a1 1 0 0 1 0-2h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zm-3-7v10a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1v-10a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zm-2 1h-8v8h8v-8z"/>
</svg>
</span>
<% end %> <% end %>
</h2> </h2>
<%= if Enum.count(@internal_transactions) > 0 do %> <%= if Enum.count(@internal_transactions) > 0 do %>

@ -635,7 +635,7 @@ msgstr ""
msgid "Copy Parent Hash" msgid "Copy Parent Hash"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:16 #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:15
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy Raw Trace" msgid "Copy Raw Trace"
msgstr "" msgstr ""
@ -686,6 +686,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41 #: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41
#: lib/block_scout_web/templates/transaction/overview.html.eex:463 #: lib/block_scout_web/templates/transaction/overview.html.eex:463
#: lib/block_scout_web/templates/transaction/overview.html.eex:469 #: lib/block_scout_web/templates/transaction/overview.html.eex:469
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:14
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy Value" msgid "Copy Value"
msgstr "" msgstr ""
@ -2861,7 +2862,7 @@ msgstr ""
msgid "truffle flattener" msgid "truffle flattener"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:29 #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:23
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "No trace entries found." msgid "No trace entries found."
msgstr "" msgstr ""

@ -635,7 +635,7 @@ msgstr ""
msgid "Copy Parent Hash" msgid "Copy Parent Hash"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:16 #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:15
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy Raw Trace" msgid "Copy Raw Trace"
msgstr "" msgstr ""
@ -686,6 +686,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41 #: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41
#: lib/block_scout_web/templates/transaction/overview.html.eex:463 #: lib/block_scout_web/templates/transaction/overview.html.eex:463
#: lib/block_scout_web/templates/transaction/overview.html.eex:469 #: lib/block_scout_web/templates/transaction/overview.html.eex:469
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:14
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy Value" msgid "Copy Value"
msgstr "" msgstr ""
@ -2861,7 +2862,7 @@ msgstr ""
msgid "truffle flattener" msgid "truffle flattener"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:29 #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:23
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "No trace entries found." msgid "No trace entries found."
msgstr "" msgstr ""

Loading…
Cancel
Save