58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
.contain
|
|
%h1
|
|
= @token.name
|
|
Token
|
|
|
|
- if policy(@token).edit?
|
|
= link_to 'Edit', edit_token_path(@token)
|
|
- if policy(@token).destroy?
|
|
= link_to 'Delete', @token, method: :delete, data: { confirm: 'Are you sure?' }
|
|
|
|
- if policy(@token).launch?
|
|
= button_to "Launch", launch_token_path(@token), method: :get
|
|
%span on IC mainnet
|
|
|
|
- if policy(@token).refresh?
|
|
= link_to "Refresh Data", refresh_token_path(@token)
|
|
|
|
.token-show
|
|
- if @token.canister_id
|
|
%p
|
|
%b Canister:
|
|
= @token.canister_id
|
|
- else
|
|
%p
|
|
%b Status:
|
|
Prelaunch
|
|
%p
|
|
%b Logo:
|
|
- if @token.logo_url.present?
|
|
-# %img{src: @token.logo_url}
|
|
-# :escaped
|
|
=raw "<img class='token-logo' src=#{@token.logo_url} />"
|
|
%p
|
|
%b Standard:
|
|
= @token.standard
|
|
%p
|
|
%b Symbol:
|
|
= @token.symbol
|
|
%p
|
|
%b Name:
|
|
= @token.name
|
|
%p
|
|
%b Total supply:
|
|
= @token.total_supply
|
|
%p
|
|
%b Decimals:
|
|
= @token.decimals
|
|
%p
|
|
%b Transfer fee:
|
|
= @token.transfer_fee_to_f
|
|
%p
|
|
%b Holders:
|
|
= @token.holder_number
|
|
%p
|
|
%b Owned by:
|
|
= @token.ownable_id
|
|
|