Co-authored-by: Stamates <stamates@hotmail.com>pull/380/head
parent
5d4fe6824d
commit
7bbd24ffb3
@ -1,16 +1,6 @@ |
||||
<%= if @address do %> |
||||
<%= link to: address_path(ExplorerWeb.Endpoint, :show, @locale, @address), "data-address-hash": @address do %> |
||||
<%= if contract?(@address) do %> |
||||
<span class="tile-label d-none d-md-none d-lg-inline"><%= @address %></span> |
||||
<span class="tile-label d-md-block d-lg-none "><%= @address |> hash() |> String.slice(0..5) %>–<%= @address |> hash() |> String.slice(-6..-1) %></span> |
||||
<% else %> |
||||
<span class="d-none d-md-none d-lg-inline"> <%= @address %></span> |
||||
<span class="d-lg-none"><%= @address |> hash() |> String.slice(0..5) %>–<%= @address |> hash() |> String.slice(-6..-1) %></span> |
||||
<% end %> |
||||
<% end %> |
||||
<% else %> |
||||
<%= if @address_hash do %> |
||||
<%= link to: address_path(ExplorerWeb.Endpoint, :show, @locale, @address_hash), "data-address-hash": @address_hash do %> |
||||
<span class="tile-label d-none d-md-none d-lg-inline"><%= @address_hash %></span> |
||||
<span class="tile-label d-lg-none"><%= to_string(@address_hash) |> String.slice(0..5) %>–<%= to_string(@address_hash) |> String.slice(-6..-1) %></span> |
||||
<span class="tile-label d-md-block d-lg-none"><%= to_string(@address_hash) |> String.slice(0..5) %>–<%= to_string(@address_hash) |> String.slice(-6..-1) %></span> |
||||
<% end %> |
||||
<% end %> |
||||
|
Loading…
Reference in new issue