Disable forum link en var

pull/6351/head
Viktor Baranov 2 years ago
parent 6d322badad
commit 96e673044b
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex
  3. 10
      apps/block_scout_web/priv/gettext/default.pot
  4. 10
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
  5. 2
      apps/indexer/lib/indexer/block/fetcher.ex
  6. 2
      apps/indexer/lib/indexer/fetcher/coin_balance.ex
  7. 3
      config/runtime.exs

@ -2,6 +2,7 @@
### Features ### Features
- [#6351](https://github.com/blockscout/blockscout/pull/6351) - Enable forum link env var
- [#6316](https://github.com/blockscout/blockscout/pull/6316) - Copy public tags functionality to master - [#6316](https://github.com/blockscout/blockscout/pull/6316) - Copy public tags functionality to master
- [#6196](https://github.com/blockscout/blockscout/pull/6196) - INDEXER_CATCHUP_BLOCKS_BATCH_SIZE and INDEXER_CATCHUP_BLOCKS_CONCURRENCY env varaibles - [#6196](https://github.com/blockscout/blockscout/pull/6196) - INDEXER_CATCHUP_BLOCKS_BATCH_SIZE and INDEXER_CATCHUP_BLOCKS_CONCURRENCY env varaibles
- [#6187](https://github.com/blockscout/blockscout/pull/6187) - Filter by created time of verified contracts in listcontracts API endpoint - [#6187](https://github.com/blockscout/blockscout/pull/6187) - Filter by created time of verified contracts in listcontracts API endpoint

@ -39,7 +39,9 @@
<li><a href="<%= issue_link(@conn) %>" rel="noreferrer" class="footer-link" target="_blank"><%= gettext("Submit an Issue") %></a></li> <li><a href="<%= issue_link(@conn) %>" rel="noreferrer" class="footer-link" target="_blank"><%= gettext("Submit an Issue") %></a></li>
<li><a href="<%= Application.get_env(:block_scout_web, :footer)[:github_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Contribute") %></a></li> <li><a href="<%= Application.get_env(:block_scout_web, :footer)[:github_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Contribute") %></a></li>
<li><a href="<%= Application.get_env(:block_scout_web, :footer)[:chat_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Chat (#blockscout)") %></a></li> <li><a href="<%= Application.get_env(:block_scout_web, :footer)[:chat_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Chat (#blockscout)") %></a></li>
<li><a href="<%= Application.get_env(:block_scout_web, :footer)[:forum_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Forum") %></a></li> <%= if Application.get_env(:block_scout_web, :footer)[:enable_forum_link] do %>
<li><a href="<%= Application.get_env(:block_scout_web, :footer)[:forum_link] %>" rel="noreferrer" class="footer-link"><%= gettext("Forum") %></a></li>
<% end %>
<%= render BlockScoutWeb.LayoutView, "_add_chain_to_mm.html" %> <%= render BlockScoutWeb.LayoutView, "_add_chain_to_mm.html" %>
</ul> </ul>
</div> </div>

@ -1242,7 +1242,7 @@ msgstr ""
msgid "Forked Blocks (Reorgs)" msgid "Forked Blocks (Reorgs)"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:42 #: lib/block_scout_web/templates/layout/_footer.html.eex:43
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Forum" msgid "Forum"
msgstr "" msgstr ""
@ -1539,7 +1539,7 @@ msgstr ""
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:50 #: lib/block_scout_web/templates/layout/_footer.html.eex:52
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Main Networks" msgid "Main Networks"
msgstr "" msgstr ""
@ -1800,7 +1800,7 @@ msgstr ""
msgid "Optimization runs" msgid "Optimization runs"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:74 #: lib/block_scout_web/templates/layout/_footer.html.eex:76
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Other Explorers" msgid "Other Explorers"
msgstr "" msgstr ""
@ -2273,7 +2273,7 @@ msgstr ""
msgid "Telegram" msgid "Telegram"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:63 #: lib/block_scout_web/templates/layout/_footer.html.eex:65
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Test Networks" msgid "Test Networks"
msgstr "" msgstr ""
@ -2941,7 +2941,7 @@ msgstr ""
msgid "Verify the contract " msgid "Verify the contract "
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:89 #: lib/block_scout_web/templates/layout/_footer.html.eex:91
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Version" msgid "Version"
msgstr "" msgstr ""

@ -1242,7 +1242,7 @@ msgstr ""
msgid "Forked Blocks (Reorgs)" msgid "Forked Blocks (Reorgs)"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:42 #: lib/block_scout_web/templates/layout/_footer.html.eex:43
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Forum" msgid "Forum"
msgstr "" msgstr ""
@ -1539,7 +1539,7 @@ msgstr ""
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:50 #: lib/block_scout_web/templates/layout/_footer.html.eex:52
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Main Networks" msgid "Main Networks"
msgstr "" msgstr ""
@ -1800,7 +1800,7 @@ msgstr ""
msgid "Optimization runs" msgid "Optimization runs"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:74 #: lib/block_scout_web/templates/layout/_footer.html.eex:76
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Other Explorers" msgid "Other Explorers"
msgstr "" msgstr ""
@ -2273,7 +2273,7 @@ msgstr ""
msgid "Telegram" msgid "Telegram"
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:63 #: lib/block_scout_web/templates/layout/_footer.html.eex:65
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Test Networks" msgid "Test Networks"
msgstr "" msgstr ""
@ -2941,7 +2941,7 @@ msgstr ""
msgid "Verify the contract " msgid "Verify the contract "
msgstr "" msgstr ""
#: lib/block_scout_web/templates/layout/_footer.html.eex:89 #: lib/block_scout_web/templates/layout/_footer.html.eex:91
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Version" msgid "Version"
msgstr "" msgstr ""

@ -71,7 +71,7 @@ defmodule Indexer.Block.Fetcher do
# These are all the *default* values for options. # These are all the *default* values for options.
# DO NOT use them directly in the code. Get options from `state`. # DO NOT use them directly in the code. Get options from `state`.
@receipts_batch_size 250 @receipts_batch_size 100
@receipts_concurrency 10 @receipts_concurrency 10
@doc false @doc false

@ -22,7 +22,7 @@ defmodule Indexer.Fetcher.CoinBalance do
@defaults [ @defaults [
flush_interval: :timer.seconds(3), flush_interval: :timer.seconds(3),
max_batch_size: 500, max_batch_size: 100,
max_concurrency: 4, max_concurrency: 4,
task_supervisor: Indexer.Fetcher.CoinBalance.TaskSupervisor, task_supervisor: Indexer.Fetcher.CoinBalance.TaskSupervisor,
metadata: [fetcher: :coin_balance] metadata: [fetcher: :coin_balance]

@ -32,7 +32,8 @@ config :indexer, Indexer.Fetcher.EmptyBlocksSanitizer, batch_size: indexer_empty
config :block_scout_web, :footer, config :block_scout_web, :footer,
chat_link: System.get_env("FOOTER_CHAT_LINK", "https://discord.gg/blockscout"), chat_link: System.get_env("FOOTER_CHAT_LINK", "https://discord.gg/blockscout"),
forum_link: System.get_env("FOOTER_FORUM_LINK", "https://forum.poa.network/c/blockscout"), forum_link: System.get_env("FOOTER_FORUM_LINK", "https://forum.poa.network/c/blockscout"),
github_link: System.get_env("FOOTER_GITHUB_LINK", "https://github.com/blockscout/blockscout") github_link: System.get_env("FOOTER_GITHUB_LINK", "https://github.com/blockscout/blockscout"),
enable_forum_link: System.get_env("FOOTER_ENABLE_FORUM_LINK", "false") == "true"
###################### ######################
### BlockScout Web ### ### BlockScout Web ###

Loading…
Cancel
Save