Commit 7073696 1 parent c8b074f commit 7073696 Copy full SHA for 7073696
File tree 5 files changed +16
-18
lines changed
lib/block_scout_web/templates/transaction_raw_trace
5 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 33
33
34
34
### Chore
35
35
36
+ - [ #6045 ] ( https://github.com/blockscout/blockscout/pull/6045 ) - Re-use _ btn_copy.html for raw trace page
36
37
- [ #6035 ] ( https://github.com/blockscout/blockscout/pull/6035 ) - Hide copy btn if no raw trace
37
38
- [ #6034 ] ( https://github.com/blockscout/blockscout/pull/6034 ) - Suppress empty sections in supported chain dropdown
38
39
- [ #5939 ] ( https://github.com/blockscout/blockscout/pull/5939 ) - Bump sweetalert2 from 11.4.26 to 11.4.27 in /apps/block_scout_web/assets
Original file line number Diff line number Diff line change 7
7
* Node JS version (` node -v ` ):
8
8
* Operating System:
9
9
* Blockscout Version/branch/commit:
10
+ * Archive node type && version (Erigon/Geth/Nethermind/Ganache/?):
10
11
11
12
### Steps to reproduce
12
13
Original file line number Diff line number Diff line change 6
6
< div class = "card-body " >
7
7
< h2 class = "card-title " > <%= gettext "Raw Trace" %>
8
8
<%= if Enum . count ( @ internal_transactions ) > 0 do %>
9
- < span
10
- aria-label = "Copy Value "
11
- class = "btn-copy-icon tx-raw-input transaction-input "
12
- id = "tx-raw-input "
13
- data-clipboard-text = "<%= for {line, _} <- raw_traces_with_lines(@internal_transactions), do: line %> "
14
- data-placement = "top "
15
- data-toggle = "tooltip "
16
- title = '<%= gettext("Copy Raw Trace") %> '
17
- style = "float: right; "
18
- >
19
- < svg xmlns = "http://www.w3.org/2000/svg " viewBox = "0 0 32.5 32.5 " width = "32 " height = "32 " >
20
- < 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 " />
21
- </ svg >
22
- </ span >
9
+ <% raw_trace_text = for { line , _ } <- raw_traces_with_lines ( @ internal_transactions ) , do: line %>
10
+ <%= render BlockScoutWeb.CommonComponentsView , "_btn_copy.html" ,
11
+ id: "tx-raw-trace-input" ,
12
+ additional_classes: [ "tx-raw-input" , "transaction-input" ] ,
13
+ clipboard_text: raw_trace_text ,
14
+ aria_label: gettext ( "Copy Value" ) ,
15
+ title: gettext ( "Copy Raw Trace" ) ,
16
+ style: "float: right;" %>
23
17
<% end %>
24
18
</ h2 >
25
19
<%= if Enum . count ( @ internal_transactions ) > 0 do %>
Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ msgstr ""
635
635
msgid "Copy Parent Hash"
636
636
msgstr ""
637
637
638
- #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:16
638
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:15
639
639
#, elixir-autogen, elixir-format
640
640
msgid "Copy Raw Trace"
641
641
msgstr ""
@@ -686,6 +686,7 @@ msgstr ""
686
686
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41
687
687
#: lib/block_scout_web/templates/transaction/overview.html.eex:463
688
688
#: lib/block_scout_web/templates/transaction/overview.html.eex:469
689
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:14
689
690
#, elixir-autogen, elixir-format
690
691
msgid "Copy Value"
691
692
msgstr ""
@@ -2861,7 +2862,7 @@ msgstr ""
2861
2862
msgid "truffle flattener"
2862
2863
msgstr ""
2863
2864
2864
- #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:29
2865
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:23
2865
2866
#, elixir-autogen, elixir-format
2866
2867
msgid "No trace entries found."
2867
2868
msgstr ""
Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ msgstr ""
635
635
msgid "Copy Parent Hash"
636
636
msgstr ""
637
637
638
- #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:16
638
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:15
639
639
#, elixir-autogen, elixir-format
640
640
msgid "Copy Raw Trace"
641
641
msgstr ""
@@ -686,6 +686,7 @@ msgstr ""
686
686
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:41
687
687
#: lib/block_scout_web/templates/transaction/overview.html.eex:463
688
688
#: lib/block_scout_web/templates/transaction/overview.html.eex:469
689
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:14
689
690
#, elixir-autogen, elixir-format
690
691
msgid "Copy Value"
691
692
msgstr ""
@@ -2861,7 +2862,7 @@ msgstr ""
2861
2862
msgid "truffle flattener"
2862
2863
msgstr ""
2863
2864
2864
- #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:29
2865
+ #: lib/block_scout_web/templates/transaction_raw_trace/index.html.eex:23
2865
2866
#, elixir-autogen, elixir-format
2866
2867
msgid "No trace entries found."
2867
2868
msgstr ""
You can’t perform that action at this time.
0 commit comments