Add all tags to transaction overview header

account
Oleg Sovetnik 3 years ago committed by Viktor Baranov
parent 3860d5a249
commit 811a3e1651
  1. 4
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex

@ -49,12 +49,14 @@
<h1 class="card-title">
<div style="display: inline-block; vertical-align: bottom; line-height: 25px;">
<%= gettext "Transaction Details" %>
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: @from_tags %>
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: @to_tags %>
<% personal_tx_tag = if assigns[:personal_tx_tag], do: @personal_tx_tag, else: nil %>
<%= 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"] %>
<% end %>
</div>
<%= render BlockScoutWeb.AddressView, "_labels.html", address_hash: @transaction.to_address_hash, tags: tags %>
<%= render BlockScoutWeb.AddressView, "_labels.html", tags: tags %>
</h1>
<%= if status == :pending do %>
<div class="tile tile-muted d-flex justify-content-center align-items-center mb-4">

Loading…
Cancel
Save