pull/1999/head
Ayrat Badykov 6 years ago
parent ad333aac7f
commit cb4354c601
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 12
      apps/block_scout_web/lib/block_scout_web/controllers/address_controller.ex
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex

@ -33,10 +33,7 @@ defmodule BlockScoutWeb.AddressController do
exchange_rate = Market.get_exchange_rate(Explorer.coin()) || Token.null()
total_supply = Chain.total_supply()
json(
conn,
%{
items:
items =
addresses_page
|> Enum.with_index(1)
|> Enum.map(fn {{address, tx_count}, index} ->
@ -50,7 +47,12 @@ defmodule BlockScoutWeb.AddressController do
tx_count: tx_count,
validation_count: validation_count(address)
)
end),
end)
json(
conn,
%{
items: items,
next_page_path: next_page_path
}
)

@ -1,11 +1,11 @@
<section class="container">
<div class="card">
<div class="card-body" data-async-listing="<%= @current_path %>">
<div class="card-body" data-async-load data-async-listing="<%= @current_path %>">
<h1 class="card-title"><%= gettext "Addresses" %></h1>
<%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "top", cur_page_number: "1", show_pagination_limit: true, data_next_page_button: true %>
<div data-selector="top-addresses-list"></div>
<div data-items data-selector="top-addresses-list"></div>
<div data-loading-message class="tile tile-muted text-center mt-3" style="display: none;">
<span class="loading-spinner-small mr-2">

Loading…
Cancel
Save