Skip to content

Commit

Permalink
Added Derivates Platforms to links section (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso committed Mar 19, 2024
1 parent f0f9931 commit 7dc3c6c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/block_scout_web/config/navigation.exs
Expand Up @@ -35,6 +35,9 @@ config :block_scout_web,
finance_tools_list: [
%{title: "Celo Tracker", url: "https://celotracker.com/"}
],
derivates_platforms_list: [
%{title: "ImmortalX", url: "https://www.immortalx.io/"}
],
resources: [
%{title: "Celo Vote", url: "https://celovote.com/"},
%{title: "Celo Forum", url: "https://forum.celo.org/"},
Expand Down
Expand Up @@ -203,6 +203,12 @@
<a href="<%= url%>" class="dropdown-item" target="_blank" data-selector="app-url"><%= title %></a>
<% end %>
</div>
<div class="col-xs-12 col-md-3 col-lg-3">
<h3 class="apps-menu-header pl-2"><b><%= gettext("Derivates Platforms") %></b></h3>
<%= for %{url: url, title: title} <- derivates_platforms_list() do %>
<a href="<%= url%>" class="dropdown-item" target="_blank" data-selector="app-url"><%= title %></a>
<% end %>
</div>
<div class="col-xs-12 col-md-3 col-lg-3">
<%= if Application.get_env(:block_scout_web, :gas_tracker)[:enabled_in_menu] == true do %>
<a class="dropdown-item" href="/gas-tracker-consumers-3hrs">
Expand Down
4 changes: 4 additions & 0 deletions apps/block_scout_web/lib/block_scout_web/views/layout_view.ex
Expand Up @@ -218,6 +218,10 @@ defmodule BlockScoutWeb.LayoutView do
list(:finance_tools_list)
end

def derivates_platforms_list do
list(:derivates_platforms_list)
end

def resources_list do
list(:resources)
end
Expand Down
7 changes: 6 additions & 1 deletion apps/block_scout_web/priv/gettext/default.pot
Expand Up @@ -3519,7 +3519,7 @@ msgstr ""
msgid "Finance Tools"
msgstr ""

#: lib/block_scout_web/templates/layout/_topnav.html.eex:209
#: lib/block_scout_web/templates/layout/_topnav.html.eex:215
#, elixir-autogen, elixir-format
msgid "Gas Tracker"
msgstr ""
Expand Down Expand Up @@ -3930,3 +3930,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "dune.com/mento-labs-eng"
msgstr ""

#: lib/block_scout_web/templates/layout/_topnav.html.eex:207
#, elixir-autogen, elixir-format
msgid "Derivates Platforms"
msgstr ""
7 changes: 6 additions & 1 deletion apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
Expand Up @@ -3519,7 +3519,7 @@ msgstr ""
msgid "Finance Tools"
msgstr ""

#: lib/block_scout_web/templates/layout/_topnav.html.eex:209
#: lib/block_scout_web/templates/layout/_topnav.html.eex:215
#, elixir-autogen, elixir-format, fuzzy
msgid "Gas Tracker"
msgstr ""
Expand Down Expand Up @@ -3930,3 +3930,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "dune.com/mento-labs-eng"
msgstr ""

#: lib/block_scout_web/templates/layout/_topnav.html.eex:207
#, elixir-autogen, elixir-format
msgid "Derivates Platforms"
msgstr ""

0 comments on commit 7dc3c6c

Please sign in to comment.