Capability to leave an empty logo

pull/5023/head
Viktor Baranov 3 years ago
parent de01b83103
commit 3871ab8569
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/assets/css/components/_navbar.scss
  3. 6
      apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex
  4. 6
      apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex
  5. 7
      apps/block_scout_web/lib/block_scout_web/views/layout_view.ex
  6. 66
      apps/block_scout_web/priv/gettext/default.pot
  7. 66
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
  8. 4
      apps/block_scout_web/test/block_scout_web/views/layout_view_test.exs

@ -25,6 +25,7 @@
- [#4867](https://github.com/blockscout/blockscout/pull/4867) - Fix bug in quering contracts method and improve contracts interactions
### Chore
- [#5023](https://github.com/blockscout/blockscout/pull/5023) - Capability to leave an empty logo
- [#5018](https://github.com/blockscout/blockscout/pull/5018) - Resolve npm vulnerabilities via npm audix fix
- [#5014](https://github.com/blockscout/blockscout/pull/5014) - Separate FIRST_BLOCK and TRACE_FIRST_BLOCK option for blocks import and tracing methods
- [#4998](https://github.com/blockscout/blockscout/pull/4998) - API endpoints logger

@ -256,6 +256,10 @@ $navbar-logo-width: auto !default;
&.in-footer {
color: #fff;
}
&.no-logo {
margin-left: 0px;
}
}
@include media-breakpoint-up(md) {

@ -4,9 +4,11 @@
<div class="row footer-logo-row">
<div class="col-md-12">
<%= link to: webapp_url(@conn), class: "footer-brand" do %>
<img class="footer-logo" src="<%= static_path(@conn, logo_footer()) %>" alt="<%= subnetwork_title() %>" />
<%= if logo_footer() do %>
<img class="footer-logo" src="<%= static_path(@conn, logo_footer()) %>" alt="<%= subnetwork_title() %>" />
<% end %>
<%= if logo_text() do %>
<span class="logo-text in-footer"> <%= logo_text() %> </span>
<span class="logo-text in-footer <%= unless logo_footer(), do: "no-logo" %>"> <%= logo_text() %> </span>
<% end %>
<% end %>
</div>

@ -3,9 +3,11 @@
<nav class="navbar navbar-dark navbar-expand-lg navbar-primary" data-selector="navbar" id="top-navbar">
<div class="container-fluid navbar-container">
<%= link to: webapp_url(@conn), class: "navbar-brand", "data-test": "header_logo" do %>
<img class="navbar-logo" id="navbar-logo" src="<%= static_path(@conn, logo()) %>" alt="<%= subnetwork_title() %>" />
<%= if logo() do %>
<img class="navbar-logo" id="navbar-logo" src="<%= static_path(@conn, logo()) %>" alt="<%= subnetwork_title() %>" />
<% end %>
<%= if logo_text() do %>
<span class="logo-text"> <%= logo_text() %> </span>
<span class="logo-text <%= unless logo(), do: "no-logo" %>"> <%= logo_text() %> </span>
<% end %>
<% end %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="<%= gettext("Toggle navigation") %>">

@ -19,7 +19,7 @@ defmodule BlockScoutWeb.LayoutView do
test_net?: true
},
%{
title: "xDai",
title: "Gnosis Chain",
url: "https://blockscout.com/xdai/mainnet"
},
%{
@ -37,12 +37,11 @@ defmodule BlockScoutWeb.LayoutView do
alias BlockScoutWeb.SocialMedia
def logo do
Keyword.get(application_config(), :logo) || "/images/blockscout_logo.svg"
Keyword.get(application_config(), :logo)
end
def logo_footer do
Keyword.get(application_config(), :logo_footer) || Keyword.get(application_config(), :logo) ||
"/images/blockscout_logo.svg"
Keyword.get(application_config(), :logo_footer) || Keyword.get(application_config(), :logo)
end
def logo_text do

@ -155,7 +155,7 @@ msgid "API for the %{subnetwork} - BlockScout"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:122
#: lib/block_scout_web/templates/layout/_topnav.html.eex:124
msgid "APIs"
msgstr ""
@ -208,8 +208,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:26
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:28 lib/block_scout_web/templates/address_transaction/index.html.eex:22
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21 lib/block_scout_web/templates/layout/_topnav.html.eex:71
#: lib/block_scout_web/templates/layout/_topnav.html.eex:103 lib/block_scout_web/views/address_internal_transaction_view.ex:11
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21 lib/block_scout_web/templates/layout/_topnav.html.eex:73
#: lib/block_scout_web/templates/layout/_topnav.html.eex:105 lib/block_scout_web/views/address_internal_transaction_view.ex:11
#: lib/block_scout_web/views/address_token_transfer_view.ex:11 lib/block_scout_web/views/address_transaction_view.ex:11
msgid "All"
msgstr ""
@ -276,7 +276,7 @@ msgid "Approximate Current Annual Percentage Yield. If you see N/A, please wait
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:150
#: lib/block_scout_web/templates/layout/_topnav.html.eex:152
msgid "Apps"
msgstr ""
@ -409,7 +409,7 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:176
#: lib/block_scout_web/templates/layout/_topnav.html.eex:22 lib/block_scout_web/templates/layout/_topnav.html.eex:26
#: lib/block_scout_web/templates/layout/_topnav.html.eex:24 lib/block_scout_web/templates/layout/_topnav.html.eex:28
msgid "Blocks"
msgstr ""
@ -426,7 +426,7 @@ msgid "Blocks Validated"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:20
#: lib/block_scout_web/templates/layout/_footer.html.eex:22
msgid "Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks."
msgstr ""
@ -441,12 +441,12 @@ msgid "Bridged Tokens from "
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:82
#: lib/block_scout_web/templates/layout/_topnav.html.eex:84
msgid "Bridged from BSC"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:76
#: lib/block_scout_web/templates/layout/_topnav.html.eex:78
msgid "Bridged from Ethereum"
msgstr ""
@ -503,7 +503,7 @@ msgid "Change Network"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:39
#: lib/block_scout_web/templates/layout/_footer.html.eex:41
msgid "Chat"
msgstr ""
@ -712,7 +712,7 @@ msgid "Contracts that self destruct in their constructors have no contract code
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:38
#: lib/block_scout_web/templates/layout/_footer.html.eex:40
msgid "Contribute"
msgstr ""
@ -1100,7 +1100,7 @@ msgid "Error: Could not determine contract creator."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:136
#: lib/block_scout_web/templates/layout/_topnav.html.eex:138
msgid "Eth RPC"
msgstr ""
@ -1108,7 +1108,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_balance_card.html.eex:18
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/address/overview.html.eex:180
#: lib/block_scout_web/templates/block/overview.html.eex:209 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20
#: lib/block_scout_web/templates/layout/_topnav.html.eex:87 lib/block_scout_web/templates/layout/_topnav.html.eex:108
#: lib/block_scout_web/templates/layout/_topnav.html.eex:89 lib/block_scout_web/templates/layout/_topnav.html.eex:110
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/templates/transaction/overview.html.eex:411
#: lib/block_scout_web/views/wei_helpers.ex:78
@ -1187,7 +1187,7 @@ msgid "For any existing contracts in the database, insert all ABI entries into t
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:32
#: lib/block_scout_web/templates/layout/_topnav.html.eex:34
msgid "Forked Blocks (Reorgs)"
msgstr ""
@ -1238,12 +1238,12 @@ msgid "Genesis Block"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:22
#: lib/block_scout_web/templates/layout/_footer.html.eex:24
msgid "Github"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:126
#: lib/block_scout_web/templates/layout/_topnav.html.eex:128
msgid "GraphQL"
msgstr ""
@ -1487,7 +1487,7 @@ msgid "ME"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:47
#: lib/block_scout_web/templates/layout/_footer.html.eex:49
msgid "Main Networks"
msgstr ""
@ -1728,7 +1728,7 @@ msgid "Ordered"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:71
#: lib/block_scout_web/templates/layout/_footer.html.eex:73
msgid "Other Explorers"
msgstr ""
@ -1760,7 +1760,7 @@ msgid "Parent Hash"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:53
#: lib/block_scout_web/templates/layout/_topnav.html.eex:55
#: lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex:184 lib/block_scout_web/views/transaction_view.ex:348
#: lib/block_scout_web/views/transaction_view.ex:386
msgid "Pending"
@ -1869,7 +1869,7 @@ msgid "Query"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:131
#: lib/block_scout_web/templates/layout/_topnav.html.eex:133
msgid "RPC"
msgstr ""
@ -2157,7 +2157,7 @@ msgid "Staker's Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:152
#: lib/block_scout_web/templates/layout/_topnav.html.eex:154
msgid "Stakes"
msgstr ""
@ -2168,7 +2168,7 @@ msgid "Stakes Ratio"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:158
#: lib/block_scout_web/templates/layout/_topnav.html.eex:160
msgid "Staking"
msgstr ""
@ -2198,7 +2198,7 @@ msgid "Status"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:37
#: lib/block_scout_web/templates/layout/_footer.html.eex:39
msgid "Submit an Issue"
msgstr ""
@ -2209,7 +2209,7 @@ msgid "Success"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:40
#: lib/block_scout_web/templates/layout/_footer.html.eex:42
msgid "Support"
msgstr ""
@ -2230,12 +2230,12 @@ msgid "Target Pool"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:28
#: lib/block_scout_web/templates/layout/_footer.html.eex:30
msgid "Telegram"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:60
#: lib/block_scout_web/templates/layout/_footer.html.eex:62
msgid "Test Networks"
msgstr ""
@ -2527,7 +2527,7 @@ msgid "To see accurate decoded input data, the contract must be verified."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:11
#: lib/block_scout_web/templates/layout/_topnav.html.eex:13
msgid "Toggle navigation"
msgstr ""
@ -2595,8 +2595,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:21
#: lib/block_scout_web/templates/address/overview.html.eex:192 lib/block_scout_web/templates/address_token/overview.html.eex:58
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 lib/block_scout_web/templates/layout/_topnav.html.eex:67
#: lib/block_scout_web/templates/layout/_topnav.html.eex:99 lib/block_scout_web/templates/tokens/index.html.eex:10
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 lib/block_scout_web/templates/layout/_topnav.html.eex:69
#: lib/block_scout_web/templates/layout/_topnav.html.eex:101 lib/block_scout_web/templates/tokens/index.html.eex:10
#: lib/block_scout_web/views/address_view.ex:345
msgid "Tokens"
msgstr ""
@ -2738,7 +2738,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:7
#: lib/block_scout_web/templates/address/overview.html.eex:203 lib/block_scout_web/templates/address_transaction/index.html.eex:13
#: lib/block_scout_web/templates/block/overview.html.eex:74 lib/block_scout_web/templates/block_transaction/index.html.eex:10
#: lib/block_scout_web/templates/chain/show.html.eex:236 lib/block_scout_web/templates/layout/_topnav.html.eex:41
#: lib/block_scout_web/templates/chain/show.html.eex:236 lib/block_scout_web/templates/layout/_topnav.html.eex:43
#: lib/block_scout_web/views/address_view.ex:347
msgid "Transactions"
msgstr ""
@ -2766,7 +2766,7 @@ msgid "Try it out"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:25
#: lib/block_scout_web/templates/layout/_footer.html.eex:27
msgid "Twitter"
msgstr ""
@ -2804,7 +2804,7 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:244
#: lib/block_scout_web/templates/layout/_topnav.html.eex:29
#: lib/block_scout_web/templates/layout/_topnav.html.eex:31
msgid "Uncles"
msgstr ""
@ -2861,7 +2861,7 @@ msgid "User-defined tips sent to validator for transaction priority/inclusion."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:45
#: lib/block_scout_web/templates/layout/_topnav.html.eex:47
msgid "Validated"
msgstr ""
@ -2938,7 +2938,7 @@ msgid "Verify the contract "
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:86
#: lib/block_scout_web/templates/layout/_footer.html.eex:88
msgid "Version"
msgstr ""

@ -155,7 +155,7 @@ msgid "API for the %{subnetwork} - BlockScout"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:122
#: lib/block_scout_web/templates/layout/_topnav.html.eex:124
msgid "APIs"
msgstr ""
@ -208,8 +208,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:26
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:28 lib/block_scout_web/templates/address_transaction/index.html.eex:22
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21 lib/block_scout_web/templates/layout/_topnav.html.eex:71
#: lib/block_scout_web/templates/layout/_topnav.html.eex:103 lib/block_scout_web/views/address_internal_transaction_view.ex:11
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21 lib/block_scout_web/templates/layout/_topnav.html.eex:73
#: lib/block_scout_web/templates/layout/_topnav.html.eex:105 lib/block_scout_web/views/address_internal_transaction_view.ex:11
#: lib/block_scout_web/views/address_token_transfer_view.ex:11 lib/block_scout_web/views/address_transaction_view.ex:11
msgid "All"
msgstr ""
@ -276,7 +276,7 @@ msgid "Approximate Current Annual Percentage Yield. If you see N/A, please wait
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:150
#: lib/block_scout_web/templates/layout/_topnav.html.eex:152
msgid "Apps"
msgstr ""
@ -409,7 +409,7 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:176
#: lib/block_scout_web/templates/layout/_topnav.html.eex:22 lib/block_scout_web/templates/layout/_topnav.html.eex:26
#: lib/block_scout_web/templates/layout/_topnav.html.eex:24 lib/block_scout_web/templates/layout/_topnav.html.eex:28
msgid "Blocks"
msgstr ""
@ -426,7 +426,7 @@ msgid "Blocks Validated"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:20
#: lib/block_scout_web/templates/layout/_footer.html.eex:22
msgid "Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks."
msgstr ""
@ -441,12 +441,12 @@ msgid "Bridged Tokens from "
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:82
#: lib/block_scout_web/templates/layout/_topnav.html.eex:84
msgid "Bridged from BSC"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:76
#: lib/block_scout_web/templates/layout/_topnav.html.eex:78
msgid "Bridged from Ethereum"
msgstr ""
@ -503,7 +503,7 @@ msgid "Change Network"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:39
#: lib/block_scout_web/templates/layout/_footer.html.eex:41
msgid "Chat"
msgstr ""
@ -712,7 +712,7 @@ msgid "Contracts that self destruct in their constructors have no contract code
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:38
#: lib/block_scout_web/templates/layout/_footer.html.eex:40
msgid "Contribute"
msgstr ""
@ -1100,7 +1100,7 @@ msgid "Error: Could not determine contract creator."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:136
#: lib/block_scout_web/templates/layout/_topnav.html.eex:138
msgid "Eth RPC"
msgstr ""
@ -1108,7 +1108,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_balance_card.html.eex:18
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/address/overview.html.eex:180
#: lib/block_scout_web/templates/block/overview.html.eex:209 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20
#: lib/block_scout_web/templates/layout/_topnav.html.eex:87 lib/block_scout_web/templates/layout/_topnav.html.eex:108
#: lib/block_scout_web/templates/layout/_topnav.html.eex:89 lib/block_scout_web/templates/layout/_topnav.html.eex:110
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/templates/transaction/overview.html.eex:411
#: lib/block_scout_web/views/wei_helpers.ex:78
@ -1187,7 +1187,7 @@ msgid "For any existing contracts in the database, insert all ABI entries into t
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:32
#: lib/block_scout_web/templates/layout/_topnav.html.eex:34
msgid "Forked Blocks (Reorgs)"
msgstr ""
@ -1238,12 +1238,12 @@ msgid "Genesis Block"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:22
#: lib/block_scout_web/templates/layout/_footer.html.eex:24
msgid "Github"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:126
#: lib/block_scout_web/templates/layout/_topnav.html.eex:128
msgid "GraphQL"
msgstr ""
@ -1487,7 +1487,7 @@ msgid "ME"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:47
#: lib/block_scout_web/templates/layout/_footer.html.eex:49
msgid "Main Networks"
msgstr ""
@ -1728,7 +1728,7 @@ msgid "Ordered"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:71
#: lib/block_scout_web/templates/layout/_footer.html.eex:73
msgid "Other Explorers"
msgstr ""
@ -1760,7 +1760,7 @@ msgid "Parent Hash"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:53
#: lib/block_scout_web/templates/layout/_topnav.html.eex:55
#: lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex:184 lib/block_scout_web/views/transaction_view.ex:348
#: lib/block_scout_web/views/transaction_view.ex:386
msgid "Pending"
@ -1869,7 +1869,7 @@ msgid "Query"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:131
#: lib/block_scout_web/templates/layout/_topnav.html.eex:133
msgid "RPC"
msgstr ""
@ -2157,7 +2157,7 @@ msgid "Staker's Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:152
#: lib/block_scout_web/templates/layout/_topnav.html.eex:154
msgid "Stakes"
msgstr ""
@ -2168,7 +2168,7 @@ msgid "Stakes Ratio"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:158
#: lib/block_scout_web/templates/layout/_topnav.html.eex:160
msgid "Staking"
msgstr ""
@ -2198,7 +2198,7 @@ msgid "Status"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:37
#: lib/block_scout_web/templates/layout/_footer.html.eex:39
msgid "Submit an Issue"
msgstr ""
@ -2209,7 +2209,7 @@ msgid "Success"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:40
#: lib/block_scout_web/templates/layout/_footer.html.eex:42
msgid "Support"
msgstr ""
@ -2230,12 +2230,12 @@ msgid "Target Pool"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:28
#: lib/block_scout_web/templates/layout/_footer.html.eex:30
msgid "Telegram"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:60
#: lib/block_scout_web/templates/layout/_footer.html.eex:62
msgid "Test Networks"
msgstr ""
@ -2527,7 +2527,7 @@ msgid "To see accurate decoded input data, the contract must be verified."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:11
#: lib/block_scout_web/templates/layout/_topnav.html.eex:13
msgid "Toggle navigation"
msgstr ""
@ -2595,8 +2595,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:21
#: lib/block_scout_web/templates/address/overview.html.eex:192 lib/block_scout_web/templates/address_token/overview.html.eex:58
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 lib/block_scout_web/templates/layout/_topnav.html.eex:67
#: lib/block_scout_web/templates/layout/_topnav.html.eex:99 lib/block_scout_web/templates/tokens/index.html.eex:10
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 lib/block_scout_web/templates/layout/_topnav.html.eex:69
#: lib/block_scout_web/templates/layout/_topnav.html.eex:101 lib/block_scout_web/templates/tokens/index.html.eex:10
#: lib/block_scout_web/views/address_view.ex:345
msgid "Tokens"
msgstr ""
@ -2738,7 +2738,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:7
#: lib/block_scout_web/templates/address/overview.html.eex:203 lib/block_scout_web/templates/address_transaction/index.html.eex:13
#: lib/block_scout_web/templates/block/overview.html.eex:74 lib/block_scout_web/templates/block_transaction/index.html.eex:10
#: lib/block_scout_web/templates/chain/show.html.eex:236 lib/block_scout_web/templates/layout/_topnav.html.eex:41
#: lib/block_scout_web/templates/chain/show.html.eex:236 lib/block_scout_web/templates/layout/_topnav.html.eex:43
#: lib/block_scout_web/views/address_view.ex:347
msgid "Transactions"
msgstr ""
@ -2766,7 +2766,7 @@ msgid "Try it out"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:25
#: lib/block_scout_web/templates/layout/_footer.html.eex:27
msgid "Twitter"
msgstr ""
@ -2804,7 +2804,7 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:244
#: lib/block_scout_web/templates/layout/_topnav.html.eex:29
#: lib/block_scout_web/templates/layout/_topnav.html.eex:31
msgid "Uncles"
msgstr ""
@ -2861,7 +2861,7 @@ msgid "User-defined tips sent to validator for transaction priority/inclusion."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_topnav.html.eex:45
#: lib/block_scout_web/templates/layout/_topnav.html.eex:47
msgid "Validated"
msgstr ""
@ -2938,7 +2938,7 @@ msgid "Verify the contract "
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_footer.html.eex:86
#: lib/block_scout_web/templates/layout/_footer.html.eex:88
msgid "Version"
msgstr ""

@ -20,8 +20,8 @@ defmodule BlockScoutWeb.LayoutViewTest do
assert LayoutView.logo() == "custom/logo.png"
end
test "use the default logo when there is no env configured for it" do
assert LayoutView.logo() == "/images/blockscout_logo.svg"
test "logo is nil when there is no env configured for it" do
assert LayoutView.logo() == nil
end
end

Loading…
Cancel
Save