Merge pull request #1804 from poanetwork/update-chains-menu

(Chore) Divide chains by Mainnet/Testnet in menu
pull/1806/head
Victor Baranov 6 years ago committed by GitHub
commit a63edc5a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      apps/block_scout_web/assets/css/components/_navbar.scss
  3. 7
      apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex
  4. 1
      apps/block_scout_web/lib/block_scout_web/views/layout_view.ex

@ -28,6 +28,7 @@
### Chore
- [#1804](https://github.com/poanetwork/blockscout/pull/1804) - (Chore) Divide chains by Mainnet/Testnet in menu
- [#1783](https://github.com/poanetwork/blockscout/pull/1783) - Update README with the chains that use Blockscout
- [#1780](https://github.com/poanetwork/blockscout/pull/1780) - Update link to the Github repo in the footer
- [#1757](https://github.com/poanetwork/blockscout/pull/1757) - Change twitter acc link to official Blockscout acc twitter

@ -158,6 +158,14 @@
background-color: $tertiary;
color: $white;
}
&.header {
font-weight: bold;
&.division {
border-top: 1px solid rgb(183, 185, 184);
}
}
}
.add-border {

@ -120,7 +120,12 @@
<%= subnetwork_title() %>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<%= for %{url: url, title: title} <- other_networks() do %>
<a class="dropdown-item header">Mainnet</a>
<%= for %{url: url, title: title} <- main_nets() do %>
<a class="dropdown-item" href="<%= url%>"><%= title %></a>
<% end %>
<a class="dropdown-item header division">Testnet</a>
<%= for %{url: url, title: title} <- test_nets() do %>
<a class="dropdown-item" href="<%= url%>"><%= title %></a>
<% end %>
</div>

@ -95,6 +95,7 @@ defmodule BlockScoutWeb.LayoutView do
|> Enum.reject(fn %{title: title} ->
title == subnetwork_title()
end)
|> Enum.sort()
end
def main_nets do

Loading…
Cancel
Save