Add smart contracts to nav bar

pull/6324/head
sl1depengwyn 2 years ago
parent 0b2ccc3662
commit ce10763e2e
  1. 3
      apps/block_scout_web/lib/block_scout_web/templates/icons/_blockchain_icon.html.eex
  2. 22
      apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 640 512">
<path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"/>
</svg>

After

Width:  |  Height:  |  Size: 872 B

@ -83,7 +83,7 @@
</span>
<%= gettext("Tokens") %>
</a>
<div class="dropdown-menu" aria-labeledby="navbarTransactionsDropdown">
<div class="dropdown-menu" aria-labeledby="navbarTransactionsDropdown">
<%= link(
gettext("All"),
class: "dropdown-item #{tab_status("tokens", @conn.request_path)}",
@ -105,7 +105,7 @@
</span>
<%= gettext("APIs") %>
</a>
<div class="dropdown-menu" aria-labeledby="navbarTransactionsDropdown">
<div class="dropdown-menu" aria-labeledby="navbarTransactionsDropdown">
<%= link(
gettext("GraphQL"),
class: "dropdown-item #{tab_status("graphiql", @conn.request_path)}",
@ -138,7 +138,7 @@
</a>
<div class="dropdown-menu" aria-labeledby="navbarAppsDropdown">
<%= if apps_menu == true do %>
<%= for %{url: url, title: title} <- external_apps_list() do %>
<%= for %{url: url, title: title} <- external_apps_list() do %>
<a href="<%= url %>" class="dropdown-item" target="_blank"><%= title %>
<span class="external-link-icon">
<%= render BlockScoutWeb.IconsView, "_external_link.html" %>
@ -156,24 +156,24 @@
</span>
<%= subnetwork_title() %>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<%= if Enum.count(main_nets) > 0 do %>
<a class="dropdown-item header division">Mainnets</a>
<%= for %{url: url, title: title} <- main_nets do %>
<a class="dropdown-item header division">Mainnets</a>
<%= for %{url: url, title: title} <- main_nets do %>
<a class="dropdown-item" href="<%= url %>"><%= title %></a>
<% end %>
<% end %>
<%= if Enum.count(test_nets) > 0 do %>
<a class="dropdown-item header division">Testnets</a>
<%= for %{url: url, title: title} <- test_nets do %>
<a class="dropdown-item header division">Testnets</a>
<%= for %{url: url, title: title} <- test_nets do %>
<a class="dropdown-item" href="<%= url %>"><%= title %></a>
<% end %>
<% end %>
<%= if Enum.count(other_nets) > 0 do %>
<a class="dropdown-item header division">Other Networks</a>
<%= for %{url: url, title: title} <- other_nets do %>
<a class="dropdown-item header division">Other Networks</a>
<%= for %{url: url, title: title} <- other_nets do %>
<a class="dropdown-item" href="<%= url %>"><%= title %></a>
<% end %>
<% end %>
<% end %>
</div>
</li>

Loading…
Cancel
Save