Merge pull request #1356 from poanetwork/improve-footer
feat: better footer, configurable network listpull/1361/head
commit
8f11416bff
@ -1,21 +1,97 @@ |
|||||||
<footer class="footer"> |
<footer class="footer"> |
||||||
<div class="footer-body container"> |
<div class="footer-body container"> |
||||||
<%= link to: chain_path(@conn, :show), class: "footer-brand" do %> |
<div class="row"> |
||||||
<img class="footer-logo" src="<%= logo() %>" alt="<%= subnetwork_title() %>" /> |
<div class="col-md-4"> |
||||||
<% end %> |
<%= link to: chain_path(@conn, :show), class: "footer-brand" do %> |
||||||
<div class="icon-links icon-links-primary"> |
<img class="footer-logo" src="<%= logo() %>" alt="<%= subnetwork_title() %>" /> |
||||||
<a href="https://github.com/poanetwork" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Github") %>"> |
<% end %> |
||||||
<i class="fab fa-github"></i> |
</div> |
||||||
</a> |
<div class="col-md-5"> |
||||||
<a href="https://www.twitter.com/PoaNetwork/" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Twitter") %>"> |
</div> |
||||||
<i class="fab fa-twitter"></i> |
|
||||||
</a> |
<div class="col-md-3"> |
||||||
<a href="http://t.me/oraclesnetwork" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Telegram") %>"> |
<div class="icon-links icon-links-primary footer-social-icons"> |
||||||
<i class="fab fa-telegram-plane"></i> |
<a href="https://github.com/poanetwork" rel="noreferrer" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Github") %>"> |
||||||
</a> |
<i class="fab fa-github"></i> |
||||||
|
</a> |
||||||
|
<a href="https://www.twitter.com/PoaNetwork/" rel="noreferrer" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Twitter") %>"> |
||||||
|
<i class="fab fa-twitter"></i> |
||||||
|
</a> |
||||||
|
<a href="http://t.me/oraclesnetwork" rel="noreferrer" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Telegram") %>"> |
||||||
|
<i class="fab fa-telegram-plane"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row footer-info"> |
||||||
|
<div class="col-12"> |
||||||
|
<%= gettext("Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.") %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<% other_explorers = other_explorers() %> |
||||||
|
|
||||||
|
<% col_size = if Enum.empty?(other_explorers), do: 4, else: 3 %> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-<%= col_size %> footer-list"> |
||||||
|
<h3>BlockScout</h3> |
||||||
|
<hr> |
||||||
|
<ul> |
||||||
|
<li><a href="<%= issue_link(@conn) %>" rel="noreferrer" class="footer-link" target="_blank"><%= gettext("Submit an Issue") %></a></li> |
||||||
|
<li><a href="https://github.com/poanetwork/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Contribute") %></a></li> |
||||||
|
<li><a href="https://gitter.im/poanetwork/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Chat") %></a></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<% main_nets = main_nets() %> |
||||||
|
|
||||||
|
<%= unless Enum.empty?(main_nets) do %> |
||||||
|
<div class="col-md-<%= col_size %> footer-list"> |
||||||
|
<h3><%= gettext("Main Networks") %></h3> |
||||||
|
<hr> |
||||||
|
<ul> |
||||||
|
<%= for %{title: title, url: url} <- main_nets do %> |
||||||
|
<li><a href="<%= url%>" rel="norefferer" class="footer-link"> <%= title %> </a></li> |
||||||
|
<% end %> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<% end %> |
||||||
|
|
||||||
|
<% test_nets = test_nets() %> |
||||||
|
|
||||||
|
<%= unless Enum.empty?(test_nets) do %> |
||||||
|
<div class="col-md-<%= col_size %> footer-list"> |
||||||
|
<h3><%= gettext("Test Networks") %></h3> |
||||||
|
<hr> |
||||||
|
<ul> |
||||||
|
<%= for %{title: title, url: url} <- test_nets do %> |
||||||
|
<li><a href="<%= url%>" rel="noreferrer" class="footer-link"> <%= title %> </a></li> |
||||||
|
<% end %> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<% end %> |
||||||
|
|
||||||
|
|
||||||
|
<%= unless Enum.empty?(other_explorers) do %> |
||||||
|
<div class="col-md-<%= col_size %> footer-list"> |
||||||
|
<h3><%= gettext("Other Explorers") %></h3> |
||||||
|
<hr> |
||||||
|
<ul> |
||||||
|
<%= for {name, url} <- other_explorers do %> |
||||||
|
<li><a href="<%= url%>" rel="noreferrer" class="footer-link"> <%= name %> </a></li> |
||||||
|
<% end %> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<% end %> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<%= gettext "Copyright %{year} POA", year: 2018 %> |
<% version = version() %> |
||||||
|
|
||||||
|
<%= unless ignore_version?(version) do %> |
||||||
|
<div class="muted text-muted"> |
||||||
|
<%= gettext("Version") %>: <%= version %> |
||||||
|
</div> |
||||||
|
<% end %> |
||||||
</div> |
</div> |
||||||
</footer> |
</footer> |
||||||
|
Loading…
Reference in new issue