|
|
|
@ -47,15 +47,13 @@ |
|
|
|
|
text: gettext("Unique character string (TxID) assigned to every verified transaction.") %> |
|
|
|
|
<%= gettext "Transaction Hash" %> |
|
|
|
|
</dt> |
|
|
|
|
<dd class="col-sm-9 col-lg-10 d-flex" style="word-break: break-all;"> |
|
|
|
|
<dd class="col-sm-9 col-lg-10" style="word-break: break-all;"> |
|
|
|
|
<span class="transaction-details-address" data-test="transaction_detail_hash"><%= @transaction %> </span> |
|
|
|
|
<span> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: @transaction, |
|
|
|
|
aria_label: gettext("Copy Transaction Hash"), |
|
|
|
|
title: gettext("Copy Txn Hash") %> |
|
|
|
|
</span> |
|
|
|
|
</dd> |
|
|
|
|
</dl> |
|
|
|
|
<!-- Verify in other explorers --> |
|
|
|
@ -156,18 +154,16 @@ |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html", |
|
|
|
|
text: gettext("Address (external or contract) sending the transaction.") %> |
|
|
|
|
<%= gettext "From" %></dt> |
|
|
|
|
<dd class="col-sm-9 col-lg-10 btn-copy-mobile-container"> |
|
|
|
|
<dd class="col-sm-9 col-lg-10"> |
|
|
|
|
<%= link( |
|
|
|
|
from_address_hash, |
|
|
|
|
to: address_path(@conn, :show, from_address_hash) |
|
|
|
|
) %> |
|
|
|
|
<span class="float-right"> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: from_address_hash, |
|
|
|
|
aria_label: gettext("Copy From Address"), |
|
|
|
|
title: gettext("Copy From Address") %> |
|
|
|
|
</span> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: from_address_hash, |
|
|
|
|
aria_label: gettext("Copy From Address"), |
|
|
|
|
title: gettext("Copy From Address") %> |
|
|
|
|
</dd> |
|
|
|
|
</dl> |
|
|
|
|
<!-- To --> |
|
|
|
@ -183,7 +179,7 @@ |
|
|
|
|
<%= gettext "To" %> |
|
|
|
|
<% end %> |
|
|
|
|
</dt> |
|
|
|
|
<dd class="col-sm-9 col-lg-10 btn-copy-mobile-container"> |
|
|
|
|
<dd class="col-sm-9 col-lg-10"> |
|
|
|
|
<%= cond do %> |
|
|
|
|
<% created_address_hash -> %> |
|
|
|
|
[<%= gettext("Contract") %> |
|
|
|
@ -192,27 +188,21 @@ |
|
|
|
|
to: address_path(@conn, :show, recipient_address_hash) |
|
|
|
|
) %> |
|
|
|
|
<%= gettext("created") %>] |
|
|
|
|
|
|
|
|
|
<span class="float-right"> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: recipient_address_hash, |
|
|
|
|
aria_label: gettext("Copy To Address"), |
|
|
|
|
title: gettext("Copy To Address") %> |
|
|
|
|
</span> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: recipient_address_hash, |
|
|
|
|
aria_label: gettext("Copy To Address"), |
|
|
|
|
title: gettext("Copy To Address") %> |
|
|
|
|
<% recipient_address_hash -> %> |
|
|
|
|
<%= link( |
|
|
|
|
recipient_address_hash, |
|
|
|
|
to: address_path(@conn, :show, recipient_address_hash) |
|
|
|
|
) %> |
|
|
|
|
|
|
|
|
|
<span class="float-right"> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: recipient_address_hash, |
|
|
|
|
aria_label: gettext("Copy To Address"), |
|
|
|
|
title: gettext("Copy To Address") %> |
|
|
|
|
</span> |
|
|
|
|
<%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", |
|
|
|
|
additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], |
|
|
|
|
clipboard_text: recipient_address_hash, |
|
|
|
|
aria_label: gettext("Copy To Address"), |
|
|
|
|
title: gettext("Copy To Address") %> |
|
|
|
|
<% true -> %> |
|
|
|
|
<% end %> |
|
|
|
|
</dd> |
|
|
|
|