parent
0092c71061
commit
665d83eb97
@ -1,146 +1,57 @@ |
|||||||
<!-- DESKTOP TAB NAV --> |
<div class="card-tabs"> |
||||||
<ul class="nav nav-tabs card-header-tabs d-none d-lg-inline-flex"> |
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Transactions"), |
gettext("Transactions"), |
||||||
class: "nav-link #{tab_status("transactions", @conn.request_path)}", |
class: "card-tab #{tab_status("transactions", @conn.request_path)}", |
||||||
to: address_transaction_path(@conn, :index, @address.hash) |
to: address_transaction_path(@conn, :index, @address.hash) |
||||||
) %> |
) %> |
||||||
</li> |
|
||||||
|
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Tokens"), |
gettext("Tokens"), |
||||||
class: "nav-link #{tab_status("tokens", @conn.request_path)}", |
class: "card-tab #{tab_status("tokens", @conn.request_path)}", |
||||||
to: address_token_path(@conn, :index, @address.hash), |
to: address_token_path(@conn, :index, @address.hash), |
||||||
"data-test": "tokens_tab_link" |
"data-test": "tokens_tab_link" |
||||||
) %> |
) %> |
||||||
</li> |
<%= link( |
||||||
|
|
||||||
<li class="nav-item"> <%= link( |
|
||||||
gettext("Internal Transactions"), |
gettext("Internal Transactions"), |
||||||
class: "nav-link #{tab_status("internal_transactions", @conn.request_path)}", |
class: "card-tab #{tab_status("internal_transactions", @conn.request_path)}", |
||||||
"data-test": "internal_transactions_tab_link", |
"data-test": "internal_transactions_tab_link", |
||||||
to: address_internal_transaction_path(@conn, :index, @address.hash) |
to: address_internal_transaction_path(@conn, :index, @address.hash) |
||||||
) %> |
) %> |
||||||
</li> |
|
||||||
|
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Coin Balance History"), |
gettext("Coin Balance History"), |
||||||
class: "nav-link #{tab_status("coin_balances", @conn.request_path)}", |
class: "card-tab #{tab_status("coin_balances", @conn.request_path)}", |
||||||
"data-test": "coin_balance_tab_link", |
"data-test": "coin_balance_tab_link", |
||||||
to: address_coin_balance_path(@conn, :index, @address.hash) |
to: address_coin_balance_path(@conn, :index, @address.hash) |
||||||
) %> |
) %> |
||||||
</li> |
|
||||||
|
|
||||||
<%= if BlockScoutWeb.AddressView.validator?(@validation_count) do %> |
<%= if BlockScoutWeb.AddressView.validator?(@validation_count) do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Blocks Validated"), |
gettext("Blocks Validated"), |
||||||
class: "nav-link #{tab_status("validations", @conn.request_path)}", |
class: "card-tab #{tab_status("validations", @conn.request_path)}", |
||||||
"data-test": "validations_tab_link", |
"data-test": "validations_tab_link", |
||||||
to: address_validation_path(@conn, :index, @address.hash) |
to: address_validation_path(@conn, :index, @address.hash) |
||||||
) %> |
) %> |
||||||
</li> |
|
||||||
<% end %> |
<% end %> |
||||||
|
|
||||||
<%= if contract?(@address) do %> |
<%= if contract?(@address) do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
to: address_contract_path(@conn, :index, @address.hash), |
to: address_contract_path(@conn, :index, @address.hash), |
||||||
class: "nav-link #{tab_status("contracts", @conn.request_path)}") do %> |
class: "card-tab #{tab_status("contracts", @conn.request_path)}") do %> |
||||||
<%= gettext("Code") %> |
<%= gettext("Code") %> |
||||||
|
|
||||||
<%= if smart_contract_verified?(@address) do %> |
<%= if smart_contract_verified?(@address) do %> |
||||||
<i class="far fa-check-circle text-success"></i> |
<i class="far fa-check-circle text-success"></i> |
||||||
<% end %> |
<% end %> |
||||||
<% end %> |
<% end %> |
||||||
</li> |
|
||||||
<% end %> |
<% end %> |
||||||
|
|
||||||
<%= if has_decompiled_code?(@address) do %> |
<%= if has_decompiled_code?(@address) do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
to: address_decompiled_contract_path(@conn, :index, @address.hash), |
to: address_decompiled_contract_path(@conn, :index, @address.hash), |
||||||
class: "nav-link #{tab_status("decompiled_contracts", @conn.request_path)}") do %> |
class: "card-tab #{tab_status("decompiled_contracts", @conn.request_path)}") do %> |
||||||
<%= gettext("Decompiled code") %> |
<%= gettext("Decompiled code") %> |
||||||
<% end %> |
<% end %> |
||||||
</li> |
|
||||||
<% end %> |
|
||||||
|
|
||||||
<%= if smart_contract_with_read_only_functions?(@address) do %> |
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
|
||||||
gettext("Read Contract"), |
|
||||||
to: address_read_contract_path(@conn, :index, @address.hash), |
|
||||||
class: "nav-link #{tab_status("read_contract", @conn.request_path)}")%> |
|
||||||
</li> |
|
||||||
<% end %> |
|
||||||
</ul> |
|
||||||
|
|
||||||
<!-- MOBILE DROPDOWN NAV --> |
|
||||||
<ul class="nav nav-tabs card-header-tabs d-lg-none"> |
|
||||||
<li class="nav-item dropdown flex-fill text-center"> |
|
||||||
<a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> |
|
||||||
<%= current_tab_name(@conn.request_path) %> |
|
||||||
</a> |
|
||||||
<div class="dropdown-menu"> |
|
||||||
<%= link( |
|
||||||
gettext("Transactions"), |
|
||||||
class: "dropdown-item #{tab_status("transactions", @conn.request_path)}", |
|
||||||
to: address_transaction_path(@conn, :index, @address.hash) |
|
||||||
) %> |
|
||||||
<%= link( |
|
||||||
gettext("Tokens"), |
|
||||||
class: "dropdown-item #{tab_status("tokens", @conn.request_path)}", |
|
||||||
to: address_token_path(@conn, :index, @address.hash) |
|
||||||
) %> |
|
||||||
<%= link( |
|
||||||
gettext("Internal Transactions"), |
|
||||||
class: "dropdown-item #{tab_status("internal_transactions", @conn.request_path)}", |
|
||||||
"data-test": "internal_transactions_tab_link", |
|
||||||
to: address_internal_transaction_path(@conn, :index, @address.hash) |
|
||||||
) %> |
|
||||||
<%= link( |
|
||||||
gettext("Coin Balance History"), |
|
||||||
class: "dropdown-item #{tab_status("coin_balances", @conn.request_path)}", |
|
||||||
"data-test": "coin_balance_tab_link", |
|
||||||
to: address_coin_balance_path(@conn, :index, @address.hash) |
|
||||||
) %> |
|
||||||
<%= if validator?(@validation_count) do %> |
|
||||||
<%= link( |
|
||||||
gettext("Blocks Validated"), |
|
||||||
class: "dropdown-item", |
|
||||||
"data-test": "validations_tab_link", |
|
||||||
to: address_validation_path(@conn, :index, @address.hash) |
|
||||||
) %> |
|
||||||
<% end %> |
|
||||||
<%= if contract?(@address) do %> |
|
||||||
<%= link( |
|
||||||
to: address_contract_path(@conn, :index, @address.hash), |
|
||||||
class: "dropdown-item #{tab_status("contracts", @conn.request_path)}") do %> |
|
||||||
<%= gettext("Code") %> |
|
||||||
|
|
||||||
<%= if smart_contract_verified?(@address) do %> |
|
||||||
<i class="far fa-check-circle"></i> |
|
||||||
<% end %> |
|
||||||
|
|
||||||
<%= if has_decompiled_code?(@address) do %> |
|
||||||
<%= link( |
|
||||||
to: address_decompiled_contract_path(@conn, :index, @address.hash), |
|
||||||
class: "dropdown-item #{tab_status("contracts", @conn.request_path)}") do %> |
|
||||||
<%= gettext("Decompiled code") %> |
|
||||||
<% end %> |
|
||||||
<% end %> |
|
||||||
<% end %> |
|
||||||
<% end %> |
<% end %> |
||||||
<%= if smart_contract_with_read_only_functions?(@address) do %> |
<%= if smart_contract_with_read_only_functions?(@address) do %> |
||||||
<%= link( |
<%= link( |
||||||
gettext("Read Contract"), |
gettext("Read Contract"), |
||||||
to: address_read_contract_path(@conn, :index, @address.hash), |
to: address_read_contract_path(@conn, :index, @address.hash), |
||||||
class: "dropdown-item #{tab_status("read_contract", @conn.request_path)}")%> |
class: "card-tab #{tab_status("read_contract", @conn.request_path)}") |
||||||
|
%> |
||||||
<% end %> |
<% end %> |
||||||
</div> |
</div> |
||||||
</li> |
|
||||||
</ul> |
|
||||||
|
@ -1,81 +1,30 @@ |
|||||||
<!-- DESKTOP TAB NAV --> |
<div class="card-tabs"> |
||||||
<ul class="nav nav-tabs card-header-tabs d-none d-lg-inline-flex"> |
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Token Transfers"), |
gettext("Token Transfers"), |
||||||
class: "nav-link #{tab_status("token_transfers", @conn.request_path)}", |
class: "card-tab #{tab_status("token_transfers", @conn.request_path)}", |
||||||
to: token_path(@conn, :show, @token.contract_address_hash) |
to: token_path(@conn, :show, @token.contract_address_hash) |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
|
|
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Token Holders"), |
gettext("Token Holders"), |
||||||
class: "nav-link #{tab_status("token_holders", @conn.request_path)}", |
class: "card-tab #{tab_status("token_holders", @conn.request_path)}", |
||||||
"data-test": "token_holders_tab", |
"data-test": "token_holders_tab", |
||||||
to: token_holder_path(@conn, :index, @token.contract_address_hash) |
to: token_holder_path(@conn, :index, @token.contract_address_hash) |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
|
|
||||||
<%= if display_inventory?(@token) do %> |
<%= if display_inventory?(@token) do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Inventory"), |
gettext("Inventory"), |
||||||
class: "nav-link #{tab_status("inventory", @conn.request_path)}", |
class: "card-tab #{tab_status("inventory", @conn.request_path)}", |
||||||
to: token_inventory_path(@conn, :index, @token.contract_address_hash) |
to: token_inventory_path(@conn, :index, @token.contract_address_hash) |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
<% end %> |
<% end %> |
||||||
|
|
||||||
<%= if smart_contract_with_read_only_functions?(@token) do %> |
<%= if smart_contract_with_read_only_functions?(@token) do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Read Contract"), |
gettext("Read Contract"), |
||||||
to: token_read_contract_path(@conn, :index, @token.contract_address_hash), |
to: token_read_contract_path(@conn, :index, @token.contract_address_hash), |
||||||
class: "nav-link #{tab_status("read_contract", @conn.request_path)}")%> |
class: "card-tab #{tab_status("read_contract", @conn.request_path)}") |
||||||
</li> |
%> |
||||||
<% end %> |
<% end %> |
||||||
</ul> |
</div> |
||||||
|
|
||||||
<!-- MOBILE DROPDOWN NAV --> |
|
||||||
<ul class="nav nav-tabs card-header-tabs d-lg-none"> |
|
||||||
<li class="nav-item dropdown flex-fill text-center"> |
|
||||||
<a class="nav-link active dropdown-toggle" |
|
||||||
data-toggle="dropdown" |
|
||||||
href="#" |
|
||||||
role="button" |
|
||||||
aria-haspopup="true" |
|
||||||
aria-expanded="false" |
|
||||||
> |
|
||||||
<%= current_tab_name(@conn.request_path) %> |
|
||||||
</a> |
|
||||||
<div class="dropdown-menu"> |
|
||||||
<%= link( |
|
||||||
gettext("Token Transfers"), |
|
||||||
class: "dropdown-item #{tab_status("token_transfers", @conn.request_path)}", |
|
||||||
to: token_path(@conn, :show, @token.contract_address_hash) |
|
||||||
) %> |
|
||||||
|
|
||||||
<%= link( |
|
||||||
gettext("Token Holders"), |
|
||||||
class: "dropdown-item #{tab_status("token_holders", @conn.request_path)}", |
|
||||||
to: token_holder_path(@conn, :index, @token.contract_address_hash) |
|
||||||
) %> |
|
||||||
|
|
||||||
<%= if display_inventory?(@token) do %> |
|
||||||
<%= link( |
|
||||||
gettext("Inventory"), |
|
||||||
class: "dropdown-item #{tab_status("inventory", @conn.request_path)}", |
|
||||||
to: token_inventory_path(@conn, :index, @token.contract_address_hash) |
|
||||||
) %> |
|
||||||
<% end %> |
|
||||||
|
|
||||||
<%= if smart_contract_with_read_only_functions?(@token) do %> |
|
||||||
<%= link( |
|
||||||
gettext("Read Contract"), |
|
||||||
to: "#", |
|
||||||
class: "dropdown-item #{tab_status("read_contract", @conn.request_path)}")%> |
|
||||||
<% end %> |
|
||||||
</div> |
|
||||||
</li> |
|
||||||
</ul> |
|
@ -1,55 +1,23 @@ |
|||||||
<!-- DESKTOP TAB NAV --> |
<div class="card-tabs"> |
||||||
<ul class="nav nav-tabs card-header-tabs d-none d-lg-inline-flex"> |
|
||||||
<%= if @show_token_transfers do %> |
<%= if @show_token_transfers do %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Token Transfers"), |
gettext("Token Transfers"), |
||||||
class: "nav-link #{tab_status("token_transfers", @conn.request_path)}", |
class: "card-tab #{tab_status("token_transfers", @conn.request_path)}", |
||||||
to: transaction_token_transfer_path(@conn, :index, @transaction) |
to: transaction_token_transfer_path(@conn, :index, @transaction) |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
<% end %> |
<% end %> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Internal Transactions"), |
gettext("Internal Transactions"), |
||||||
class: "nav-link #{tab_status("internal_transactions", @conn.request_path)}", |
class: "card-tab #{tab_status("internal_transactions", @conn.request_path)}", |
||||||
to: transaction_internal_transaction_path(@conn, :index, @transaction) |
to: transaction_internal_transaction_path(@conn, :index, @transaction) |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
<li class="nav-item"> |
|
||||||
<%= link( |
<%= link( |
||||||
gettext("Logs"), |
gettext("Logs"), |
||||||
class: "nav-link #{tab_status("logs", @conn.request_path)}", |
class: "card-tab #{tab_status("logs", @conn.request_path)}", |
||||||
to: transaction_log_path(@conn, :index, @transaction), |
to: transaction_log_path(@conn, :index, @transaction), |
||||||
"data-test": "transaction_logs_link" |
"data-test": "transaction_logs_link" |
||||||
) %> |
) |
||||||
</li> |
%> |
||||||
</ul> |
</div> |
||||||
|
|
||||||
<!-- MOBILE DROPDOWN NAV --> |
|
||||||
<ul class="nav nav-tabs card-header-tabs d-lg-none"> |
|
||||||
<li class="nav-item dropdown flex-fill text-center"> |
|
||||||
<a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><%= current_tab_name(@conn.request_path) %></a> |
|
||||||
<div class="dropdown-menu"> |
|
||||||
<%= if @show_token_transfers do %> |
|
||||||
<%= link( |
|
||||||
gettext("Token Transfers"), |
|
||||||
class: "dropdown-item #{tab_status("token_transfers", @conn.request_path)}", |
|
||||||
to: transaction_token_transfer_path(@conn, :index, @transaction), |
|
||||||
"data-test": "transaction_token_transfer_link" |
|
||||||
) %> |
|
||||||
<% end %> |
|
||||||
<%= link( |
|
||||||
gettext("Internal Transactions"), |
|
||||||
class: "dropdown-item #{tab_status("internal_transactions", @conn.request_path)}", |
|
||||||
to: transaction_internal_transaction_path(@conn, :index, @transaction) |
|
||||||
) %> |
|
||||||
<%= link( |
|
||||||
gettext("Logs"), |
|
||||||
class: "dropdown-item #{tab_status("logs", @conn.request_path)}", |
|
||||||
to: transaction_log_path(@conn, :index, @transaction), |
|
||||||
"data-test": "transaction_logs_link" |
|
||||||
) %> |
|
||||||
</div> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
|
Loading…
Reference in new issue