From 4a941816dd03ebfa44998cc5fe021fac1856aaa2 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Ferreira Date: Thu, 11 Oct 2018 10:31:54 -0300 Subject: [PATCH 1/2] join association of nephew --- .../controllers/address_validation_controller.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/address_validation_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/address_validation_controller.ex index f16fefc516..2ded7ee13d 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/address_validation_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/address_validation_controller.ex @@ -15,7 +15,13 @@ defmodule BlockScoutWeb.AddressValidationController do {:ok, address} <- Chain.hash_to_address(address_hash) do full_options = Keyword.merge( - [necessity_by_association: %{miner: :required, transactions: :optional}], + [ + necessity_by_association: %{ + miner: :required, + nephews: :optional, + transactions: :optional + } + ], paging_options(params) ) From 71f075734a61cce8e7076be6816d0308dcf0f122 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Ferreira Date: Thu, 11 Oct 2018 10:32:49 -0300 Subject: [PATCH 2/2] pass block type to tile partial --- .../block_scout_web/templates/address_validation/index.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_validation/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_validation/index.html.eex index a8c14ef301..5049bf91ff 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_validation/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_validation/index.html.eex @@ -108,7 +108,7 @@

<%=gettext("Blocks Validated")%>

<%= for block <- @blocks do %> - <%= render BlockScoutWeb.BlockView, "_tile.html", block: block %> + <%= render BlockScoutWeb.BlockView, "_tile.html", block: block, block_type: BlockScoutWeb.BlockView.block_type(block)%> <% end %>