diff --git a/.dialyzer-ignore b/.dialyzer-ignore index 78a619e1bf..527272ec2d 100644 --- a/.dialyzer-ignore +++ b/.dialyzer-ignore @@ -13,6 +13,7 @@ apps/explorer/lib/explorer/smart_contract/publisher_worker.ex:6: The pattern 'fa apps/explorer/lib/explorer/smart_contract/publisher_worker.ex:6: The test 5 == 'infinity' can never evaluate to 'true' lib/block_scout_web/router.ex:1 lib/phoenix/router.ex:324 -lib/block_scout_web/views/layout_view.ex:143 +lib/block_scout_web/views/layout_view.ex:138: The call 'Elixir.Poison.Parser':'parse!' +lib/block_scout_web/views/layout_view.ex:224: The call 'Elixir.Poison.Parser':'parse!' lib/block_scout_web/controllers/api/rpc/transaction_controller.ex:21 -lib/block_scout_web/controllers/api/rpc/transaction_controller.ex:22 \ No newline at end of file +lib/block_scout_web/controllers/api/rpc/transaction_controller.ex:22 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9597989a84..6708a78be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Current ### Features +- [#3184](https://github.com/poanetwork/blockscout/pull/3184) - Apps navbar menu item ### Fixes - [#3178](https://github.com/poanetwork/blockscout/pull/3178) - Fix permanent fetching tokens... when read/write proxy tab is active diff --git a/apps/block_scout_web/assets/css/components/_dropdown.scss b/apps/block_scout_web/assets/css/components/_dropdown.scss index a44b5386f9..5264a73902 100644 --- a/apps/block_scout_web/assets/css/components/_dropdown.scss +++ b/apps/block_scout_web/assets/css/components/_dropdown.scss @@ -42,6 +42,12 @@ $dropdown-menu-item-hover-background: rgba($secondary, 0.1) !default; &:focus { background-color: $dropdown-menu-item-hover-background; color: $dropdown-menu-item-hover-color; + + .external-link-icon { + path { + fill: $header-icon-color-hover; + } + } } } diff --git a/apps/block_scout_web/assets/css/components/_navbar.scss b/apps/block_scout_web/assets/css/components/_navbar.scss index 24efbe84f1..d97f0483d5 100644 --- a/apps/block_scout_web/assets/css/components/_navbar.scss +++ b/apps/block_scout_web/assets/css/components/_navbar.scss @@ -260,3 +260,18 @@ $navbar-logo-width: auto !default; transition: none !important; } } + +.external-link-icon { + float: right; + margin-top: -1px; + + & { + &.active, + &:hover, + &:focus { + path { + fill: $header-icon-color-hover; + } + } + } +} diff --git a/apps/block_scout_web/config/config.exs b/apps/block_scout_web/config/config.exs index b5bd4087f6..097995e969 100644 --- a/apps/block_scout_web/config/config.exs +++ b/apps/block_scout_web/config/config.exs @@ -32,7 +32,9 @@ config :block_scout_web, }, other_networks: System.get_env("SUPPORTED_CHAINS"), webapp_url: System.get_env("WEBAPP_URL"), - api_url: System.get_env("API_URL") + api_url: System.get_env("API_URL"), + apps_menu: if(System.get_env("APPS_MENU", "false") == "true", do: true, else: false), + external_apps: System.get_env("EXTERNAL_APPS") config :block_scout_web, BlockScoutWeb.Counters.BlocksIndexedCounter, enabled: true diff --git a/apps/block_scout_web/lib/block_scout_web/templates/icons/_external_link.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/icons/_external_link.html.eex new file mode 100644 index 0000000000..5f9f06e568 --- /dev/null +++ b/apps/block_scout_web/lib/block_scout_web/templates/icons/_external_link.html.eex @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex index d54f71fb41..12575322f6 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex @@ -103,6 +103,25 @@ <% end %> + <%= if Application.get_env(:block_scout_web, :apps_menu) == true do %> + + <% end %>