From e4ecf4503da752add1908316f282b37572d38bab Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 15 Apr 2019 11:35:35 +0300 Subject: [PATCH 1/3] add check mark to decompiled contract tab --- .../lib/block_scout_web/templates/address/_tabs.html.eex | 6 ++++-- .../templates/address_decompiled_contract/index.html.eex | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex index f981f75ace..8c4a932b76 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex @@ -64,8 +64,9 @@ <%= link( to: address_decompiled_contract_path(@conn, :index, @address.hash), class: "nav-link #{tab_status("decompiled_contracts", @conn.request_path)}") do %> - <%= gettext("Decompiled code") %> - <% end %> + <%= gettext("Decompiled code") %> + + <% end %> <% end %> @@ -131,6 +132,7 @@ to: address_decompiled_contract_path(@conn, :index, @address.hash), class: "dropdown-item #{tab_status("contracts", @conn.request_path)}") do %> <%= gettext("Decompiled code") %> + <% end %> <% end %> <% end %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex index d2412d62c1..615dc4de69 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex @@ -10,7 +10,7 @@

<%= gettext "Decompiler version" %>

-
<%= contract.decompiler_version %>
+
<%= contract.decompiler_version %>

From 0a9daa4eef280a61b587bbc44c8d0b6ee27c975f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 15 Apr 2019 11:38:32 +0300 Subject: [PATCH 2/3] add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 114182cdc6..6f773213b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Chore - [#1718](https://github.com/poanetwork/blockscout/pull/1718) - Flatten indexer module hierarchy and supervisor tree + - [#1753](https://github.com/poanetwork/blockscout/pull/1753) - Add a check mark to decompiled contract tab ## 1.3.9-beta From 56f5277df2ab9e238b0bb8852d7e5b7c9f99007f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 15 Apr 2019 11:38:58 +0300 Subject: [PATCH 3/3] fix gettext --- apps/block_scout_web/priv/gettext/default.pot | 18 +++++++-------- .../priv/gettext/en/LC_MESSAGES/default.po | 22 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 28d3db09d8..6f30fdf2e3 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -188,7 +188,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:40 -#: lib/block_scout_web/templates/address/_tabs.html.eex:113 +#: lib/block_scout_web/templates/address/_tabs.html.eex:114 #: lib/block_scout_web/templates/address/overview.html.eex:59 #: lib/block_scout_web/templates/address_validation/index.html.eex:30 #: lib/block_scout_web/templates/address_validation/index.html.eex:57 @@ -218,7 +218,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:53 -#: lib/block_scout_web/templates/address/_tabs.html.eex:123 +#: lib/block_scout_web/templates/address/_tabs.html.eex:124 #: lib/block_scout_web/templates/address_validation/index.html.eex:39 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 @@ -488,7 +488,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/_tabs.html.eex:100 +#: lib/block_scout_web/templates/address/_tabs.html.eex:101 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:58 #: lib/block_scout_web/templates/address_validation/index.html.eex:24 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:14 @@ -698,8 +698,8 @@ msgid "Query" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/address/_tabs.html.eex:75 -#: lib/block_scout_web/templates/address/_tabs.html.eex:140 +#: lib/block_scout_web/templates/address/_tabs.html.eex:76 +#: lib/block_scout_web/templates/address/_tabs.html.eex:142 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:33 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:75 #: lib/block_scout_web/views/address_view.ex:298 @@ -891,7 +891,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:13 -#: lib/block_scout_web/templates/address/_tabs.html.eex:95 +#: lib/block_scout_web/templates/address/_tabs.html.eex:96 #: lib/block_scout_web/templates/address_token/index.html.eex:11 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:12 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 @@ -948,7 +948,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:5 -#: lib/block_scout_web/templates/address/_tabs.html.eex:90 +#: lib/block_scout_web/templates/address/_tabs.html.eex:91 #: lib/block_scout_web/templates/address_transaction/index.html.eex:53 #: lib/block_scout_web/templates/address_validation/index.html.eex:14 #: lib/block_scout_web/templates/block_transaction/index.html.eex:13 @@ -1399,7 +1399,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:30 -#: lib/block_scout_web/templates/address/_tabs.html.eex:106 +#: lib/block_scout_web/templates/address/_tabs.html.eex:107 #: lib/block_scout_web/views/address_view.ex:299 msgid "Coin Balance History" msgstr "" @@ -1714,7 +1714,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:67 -#: lib/block_scout_web/templates/address/_tabs.html.eex:133 +#: lib/block_scout_web/templates/address/_tabs.html.eex:134 msgid "Decompiled code" msgstr "" diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index 6dbdb2d676..a1fb23d655 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -188,7 +188,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:40 -#: lib/block_scout_web/templates/address/_tabs.html.eex:113 +#: lib/block_scout_web/templates/address/_tabs.html.eex:114 #: lib/block_scout_web/templates/address/overview.html.eex:59 #: lib/block_scout_web/templates/address_validation/index.html.eex:30 #: lib/block_scout_web/templates/address_validation/index.html.eex:57 @@ -218,7 +218,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:53 -#: lib/block_scout_web/templates/address/_tabs.html.eex:123 +#: lib/block_scout_web/templates/address/_tabs.html.eex:124 #: lib/block_scout_web/templates/address_validation/index.html.eex:39 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 @@ -488,7 +488,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/_tabs.html.eex:100 +#: lib/block_scout_web/templates/address/_tabs.html.eex:101 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:58 #: lib/block_scout_web/templates/address_validation/index.html.eex:24 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:14 @@ -698,8 +698,8 @@ msgid "Query" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/address/_tabs.html.eex:75 -#: lib/block_scout_web/templates/address/_tabs.html.eex:140 +#: lib/block_scout_web/templates/address/_tabs.html.eex:76 +#: lib/block_scout_web/templates/address/_tabs.html.eex:142 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:33 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:75 #: lib/block_scout_web/views/address_view.ex:298 @@ -891,7 +891,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:13 -#: lib/block_scout_web/templates/address/_tabs.html.eex:95 +#: lib/block_scout_web/templates/address/_tabs.html.eex:96 #: lib/block_scout_web/templates/address_token/index.html.eex:11 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:12 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 @@ -948,7 +948,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:5 -#: lib/block_scout_web/templates/address/_tabs.html.eex:90 +#: lib/block_scout_web/templates/address/_tabs.html.eex:91 #: lib/block_scout_web/templates/address_transaction/index.html.eex:53 #: lib/block_scout_web/templates/address_validation/index.html.eex:14 #: lib/block_scout_web/templates/block_transaction/index.html.eex:13 @@ -1399,7 +1399,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:30 -#: lib/block_scout_web/templates/address/_tabs.html.eex:106 +#: lib/block_scout_web/templates/address/_tabs.html.eex:107 #: lib/block_scout_web/views/address_view.ex:299 msgid "Coin Balance History" msgstr "" @@ -1714,7 +1714,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:67 -#: lib/block_scout_web/templates/address/_tabs.html.eex:133 +#: lib/block_scout_web/templates/address/_tabs.html.eex:134 msgid "Decompiled code" msgstr "" @@ -1723,12 +1723,12 @@ msgstr "" msgid "Decompiled contract code" msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_decompiled_contract/index.html.eex:11 msgid "Decompiler version" msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:52 msgid "Optimization runs" msgstr ""