|
|
|
@ -1,9 +1,7 @@ |
|
|
|
|
<% status = transaction_status(@transaction) %> |
|
|
|
|
<% error_in_internal_tx = @transaction.has_error_in_internal_txs %> |
|
|
|
|
<% current_user = AuthController.current_user(@conn) %> |
|
|
|
|
<% from_tags = GetAddressTags.get_address_tags(@transaction.from_address_hash, current_user) %> |
|
|
|
|
<% to_tags = GetAddressTags.get_address_tags(@transaction.to_address_hash, current_user) %> |
|
|
|
|
<% personal_tx_tag = GetTransactionTags.get_transaction_tags(@transaction.hash, current_user) %> |
|
|
|
|
<% tx_tags = GetTransactionTags.get_transaction_with_addresess_tags(@transaction, current_user) %> |
|
|
|
|
<div class="tile tile-type-<%= type_suffix(@transaction) %> fade-in <%= status_class(@transaction) %>" data-test="<%= type_suffix(@transaction) %>" data-identifier-hash="<%= @transaction.hash %>"> |
|
|
|
|
<div class="row tile-body" data-selector="token-transfers-toggle" data-test="chain_transaction"> |
|
|
|
|
<!-- Color Block --> |
|
|
|
@ -35,11 +33,10 @@ |
|
|
|
|
<%= if method_name do %> |
|
|
|
|
<%= render BlockScoutWeb.FormView, "_tag.html", text: method_name, additional_classes: ["method", "ml-1"] %> |
|
|
|
|
<% end %> |
|
|
|
|
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: from_tags %> |
|
|
|
|
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: to_tags %> |
|
|
|
|
<%= if personal_tx_tag do %> |
|
|
|
|
<%= render BlockScoutWeb.FormView, "_tag.html", text: personal_tx_tag.name, additional_classes: [tag_name_to_label(personal_tx_tag.name), "ml-1"] %> |
|
|
|
|
<%= if tx_tags.personal_tx_tag do %> |
|
|
|
|
<%= render BlockScoutWeb.FormView, "_tag.html", text: tx_tags.personal_tx_tag.name, additional_classes: [tag_name_to_label(tx_tags.personal_tx_tag.name), "ml-1"] %> |
|
|
|
|
<% end %> |
|
|
|
|
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: tx_tags %> |
|
|
|
|
</div> |
|
|
|
|
</span> |
|
|
|
|
<span> |
|
|
|
|