Add @current_user to TransactionController

account
Oleg Sovetnik 3 years ago committed by Viktor Baranov
parent 0cfd19638b
commit 728b8d82d5
  1. 2
      apps/block_scout_web/lib/block_scout_web/controllers/transaction_controller.ex
  2. 1
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex

@ -164,6 +164,7 @@ defmodule BlockScoutWeb.TransactionController do
exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(), exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(),
block_height: Chain.block_height(), block_height: Chain.block_height(),
current_path: Controller.current_full_path(conn), current_path: Controller.current_full_path(conn),
current_user: current_user(conn),
show_token_transfers: true, show_token_transfers: true,
transaction: transaction, transaction: transaction,
from_tags: get_address_tags(transaction.from_address_hash, current_user(conn)), from_tags: get_address_tags(transaction.from_address_hash, current_user(conn)),
@ -200,6 +201,7 @@ defmodule BlockScoutWeb.TransactionController do
"show_internal_transactions.html", "show_internal_transactions.html",
exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(), exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(),
current_path: Controller.current_full_path(conn), current_path: Controller.current_full_path(conn),
current_user: current_user(conn),
block_height: Chain.block_height(), block_height: Chain.block_height(),
show_token_transfers: Chain.transaction_has_token_transfers?(transaction_hash), show_token_transfers: Chain.transaction_has_token_transfers?(transaction_hash),
transaction: transaction, transaction: transaction,

@ -206,7 +206,6 @@
clipboard_text: from_address_hash, clipboard_text: from_address_hash,
aria_label: gettext("Copy From Address"), aria_label: gettext("Copy From Address"),
title: gettext("Copy From Address") %> title: gettext("Copy From Address") %>
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: @from_tags %>
</dd> </dd>
</dl> </dl>
<!-- To --> <!-- To -->

Loading…
Cancel
Save