|
|
@ -1,11 +1,6 @@ |
|
|
|
<span class="<%= if @contract do %>contract-address<% end %>" data-address-hash="<%= @address.hash %>"> |
|
|
|
<span class="<%= if @contract do %>contract-address<% end %>" data-address-hash="<%= @address.hash %>"> |
|
|
|
<%= if name = primary_name(@address) do %> |
|
|
|
<%= if name = primary_name(@address) do %> |
|
|
|
<%= if assigns[:truncate] do %> |
|
|
|
<span data-toggle="tooltip" data-placement="top" title="<%= @address.hash %>"><%= name %> (<%= short_hash(@address) %>...)</span> |
|
|
|
<span data-toggle="tooltip" data-placement="top" title="<%= @address.hash %>"><%= name %> (<%= short_hash(@address) %>...)</span> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<span class="d-none d-md-none d-lg-inline" data-toggle="tooltip" data-placement="top" title="<%= @address.hash %>"><%= name %> (<%= @address.hash %>)</span> |
|
|
|
|
|
|
|
<span class="d-md-inline-block d-lg-none" data-toggle="tooltip" data-placement="top" title="<%= @address.hash %>"><%= name %> (<%= BlockScoutWeb.AddressView.trimmed_hash(@address.hash) %>)</span> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<%= if assigns[:truncate] do %> |
|
|
|
<%= if assigns[:truncate] do %> |
|
|
|
<%= BlockScoutWeb.AddressView.trimmed_hash(@address.hash) %> |
|
|
|
<%= BlockScoutWeb.AddressView.trimmed_hash(@address.hash) %> |
|
|
|