From 440593b219c3a943d664bb607ff6d57bf7a7eebe Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Oct 2019 15:44:30 +0300 Subject: [PATCH] Add tooltip for tx input --- CHANGELOG.md | 1 + .../templates/transaction/overview.html.eex | 1 + apps/block_scout_web/priv/gettext/default.pot | 21 ++++++++++++------- .../priv/gettext/en/LC_MESSAGES/default.po | 21 ++++++++++++------- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e75b77e04..4f278cef33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Fixes ### Chore +- [#2808](https://github.com/poanetwork/blockscout/pull/2808) - Add tooltip for tx input ## 2.1.0-beta 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 c228ec9877..68f6fe98b8 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 @@ -131,6 +131,7 @@ data-clipboard-text="<%= @transaction.input %>" data-placement="top" data-toggle="tooltip" + title='<%= gettext("Copy Txn Input") %>' > diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index d8490ddc74..4864cce5c7 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -13,7 +13,7 @@ msgstr[0] "" msgstr[1] "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:192 +#: lib/block_scout_web/templates/transaction/overview.html.eex:193 msgid " Token Transfer" msgstr "" @@ -678,8 +678,8 @@ msgstr "" #: lib/block_scout_web/templates/layout/app.html.eex:62 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 #: lib/block_scout_web/templates/transaction/_tile.html.eex:29 -#: lib/block_scout_web/templates/transaction/overview.html.eex:179 -#: lib/block_scout_web/templates/transaction/overview.html.eex:214 +#: lib/block_scout_web/templates/transaction/overview.html.eex:180 +#: lib/block_scout_web/templates/transaction/overview.html.eex:215 #: lib/block_scout_web/views/wei_helpers.ex:78 msgid "Ether" msgstr "" @@ -1048,7 +1048,7 @@ msgid "License ID" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:242 +#: lib/block_scout_web/templates/transaction/overview.html.eex:243 msgid "Limit" msgstr "" @@ -1620,7 +1620,7 @@ msgid "Use the search box to find a hosted network, or select from the list of a msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:236 +#: lib/block_scout_web/templates/transaction/overview.html.eex:237 msgid "Used" msgstr "" @@ -1650,8 +1650,8 @@ msgid "Validator Info" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:179 -#: lib/block_scout_web/templates/transaction/overview.html.eex:214 +#: lib/block_scout_web/templates/transaction/overview.html.eex:180 +#: lib/block_scout_web/templates/transaction/overview.html.eex:215 msgid "Value" msgstr "" @@ -1826,7 +1826,7 @@ msgid "Decimals" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:232 +#: lib/block_scout_web/templates/transaction/overview.html.eex:233 msgid "Gas" msgstr "" @@ -1872,3 +1872,8 @@ msgstr "" #: lib/block_scout_web/templates/tokens/instance/overview/_details.html.eex:67 msgid "Transfers" msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction/overview.html.eex:134 +msgid "Copy Txn Input" +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 d8490ddc74..4864cce5c7 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 @@ -13,7 +13,7 @@ msgstr[0] "" msgstr[1] "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:192 +#: lib/block_scout_web/templates/transaction/overview.html.eex:193 msgid " Token Transfer" msgstr "" @@ -678,8 +678,8 @@ msgstr "" #: lib/block_scout_web/templates/layout/app.html.eex:62 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 #: lib/block_scout_web/templates/transaction/_tile.html.eex:29 -#: lib/block_scout_web/templates/transaction/overview.html.eex:179 -#: lib/block_scout_web/templates/transaction/overview.html.eex:214 +#: lib/block_scout_web/templates/transaction/overview.html.eex:180 +#: lib/block_scout_web/templates/transaction/overview.html.eex:215 #: lib/block_scout_web/views/wei_helpers.ex:78 msgid "Ether" msgstr "" @@ -1048,7 +1048,7 @@ msgid "License ID" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:242 +#: lib/block_scout_web/templates/transaction/overview.html.eex:243 msgid "Limit" msgstr "" @@ -1620,7 +1620,7 @@ msgid "Use the search box to find a hosted network, or select from the list of a msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:236 +#: lib/block_scout_web/templates/transaction/overview.html.eex:237 msgid "Used" msgstr "" @@ -1650,8 +1650,8 @@ msgid "Validator Info" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:179 -#: lib/block_scout_web/templates/transaction/overview.html.eex:214 +#: lib/block_scout_web/templates/transaction/overview.html.eex:180 +#: lib/block_scout_web/templates/transaction/overview.html.eex:215 msgid "Value" msgstr "" @@ -1826,7 +1826,7 @@ msgid "Decimals" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/overview.html.eex:232 +#: lib/block_scout_web/templates/transaction/overview.html.eex:233 msgid "Gas" msgstr "" @@ -1872,3 +1872,8 @@ msgstr "" #: lib/block_scout_web/templates/tokens/instance/overview/_details.html.eex:67 msgid "Transfers" msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction/overview.html.eex:134 +msgid "Copy Txn Input" +msgstr ""