new icons for xdai, goerli, ropsten, fix for img path

pull/2197/head
maxgrapps 6 years ago
parent 3c7e83be41
commit ae27908e29
  1. 12
      apps/block_scout_web/assets/js/pages/favorites.js
  2. 10
      apps/block_scout_web/assets/js/pages/network-search.js
  3. BIN
      apps/block_scout_web/assets/static/images/network-selector-icons/goerli-testnet.png
  4. BIN
      apps/block_scout_web/assets/static/images/network-selector-icons/ropsten-testnet.png
  5. BIN
      apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.png
  6. 3
      apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector.html.eex
  7. 2
      apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector_item.html.eex
  8. 5
      apps/block_scout_web/priv/gettext/default.pot

@ -1,7 +1,7 @@
import $ from 'jquery'
var favoritesContainer = $('.js-favorites-tab');
var favoritesNetworksUrls = [];
var favoritesContainer = $('.js-favorites-tab')
var favoritesNetworksUrls = []
if (localStorage.getItem('favoritesNetworksUrls') === null) {
localStorage.setItem('favoritesNetworksUrls', JSON.stringify(favoritesNetworksUrls))
@ -10,10 +10,10 @@ if (localStorage.getItem('favoritesNetworksUrls') === null) {
}
$(document).on('change', ".network-selector-item-favorite input[type='checkbox']", function () {
var networkUrl = $(this).attr('data-url'),
thisStatus = $(this).is(':checked'),
parent = $(".network-selector-item[data-url='" + networkUrl + "'").clone(),
workWith = $(".network-selector-item[data-url='" + networkUrl + "'")
var networkUrl = $(this).attr('data-url')
var thisStatus = $(this).is(':checked');
var parent = $(".network-selector-item[data-url='" + networkUrl + "'").clone();
var workWith = $(".network-selector-item[data-url='" + networkUrl + "'");
// Add new checkbox status to same network in another tabs
$(".network-selector-item-favorite input[data-url='" + networkUrl + "']").prop('checked', thisStatus)

@ -1,15 +1,15 @@
import $ from 'jquery'
var networkSearchInput = $('.network-selector-search-input'),
networkSearchInputVal = ''
var networkSearchInput = $('.network-selector-search-input')
var networkSearchInputVal = ""
$(networkSearchInput).on('input', function () {
networkSearchInputVal = $(this).val()
$.expr[':'].Contains = $.expr.createPseudo(function (arg) {
return function (elem) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0
}
return function (elem) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0
}
})
if (networkSearchInputVal === '') {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

@ -47,9 +47,6 @@
<div class="network-selector-tab-content-empty">No content.</div>
</div>
</div>
<!--<div class="network-selector-load-more-container">
<button class="btn-network-selector-load-more"><%= gettext("Show More Networks") %></button>
</div>-->
</div>
</div>
</div>

@ -5,7 +5,7 @@
<span class="radio-icon"></span>
</span>
<span class="network-selector-item-content">
<span class='network-selector-item-icon network-selector-item-icon-<%= String.downcase(String.replace(@title, " ", "-")) %>' style="background-image: url('images/network-selector-icons/<%= String.downcase(String.replace(@title, " ", "-")) %>.png');"></span>
<span class='network-selector-item-icon network-selector-item-icon-<%= String.downcase(String.replace(@title, " ", "-")) %>' style="background-image: url('/images/network-selector-icons/<%= String.downcase(String.replace(@title, " ", "-")) %>.png');"></span>
<span class="network-selector-item-title">
<%= @title %>
</span>

@ -1721,11 +1721,6 @@ msgstr ""
msgid "Search network"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:51
msgid "Show More Networks"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:22
msgid "Testnet"

Loading…
Cancel
Save