Improve token index style
This commit is contained in:
parent
4bf22922ac
commit
161ef86384
@ -2,4 +2,5 @@
|
|||||||
font-family: "monospace"
|
font-family: "monospace"
|
||||||
|
|
||||||
.token-logo
|
.token-logo
|
||||||
max-width: 100%
|
max-width: 3rem
|
||||||
|
vertical-align: middle
|
||||||
|
|||||||
@ -5,36 +5,36 @@
|
|||||||
- if policy(Token).new?
|
- if policy(Token).new?
|
||||||
= link_to 'Add Token', new_token_path
|
= link_to 'Add Token', new_token_path
|
||||||
|
|
||||||
.table-container
|
.table-container
|
||||||
%table.token-index
|
%table.token-index
|
||||||
%thead
|
%thead
|
||||||
%tr
|
|
||||||
%th Logo
|
|
||||||
%th Canister
|
|
||||||
%th Standard
|
|
||||||
%th Symbol
|
|
||||||
%th Name
|
|
||||||
%th Total supply
|
|
||||||
%th Decimals
|
|
||||||
%th Transfer fee
|
|
||||||
- if policy(@tokens).update?
|
|
||||||
%th
|
|
||||||
%th
|
|
||||||
%th
|
|
||||||
|
|
||||||
%tbody
|
|
||||||
- @tokens.each do |token|
|
|
||||||
%tr
|
%tr
|
||||||
%td= raw "<img class='token-logo' src=#{token.logo_url} />"
|
%th Logo
|
||||||
%td= link_to token.canister_id, token
|
%th Canister
|
||||||
%td= token.standard
|
%th Standard
|
||||||
%td= token.symbol
|
%th Symbol
|
||||||
%td= token.name
|
%th Name
|
||||||
%td= token.total_supply
|
%th Total supply
|
||||||
%td= token.decimals
|
%th Decimals
|
||||||
%td= token.transfer_fee
|
%th Transfer fee
|
||||||
- if policy(token).update?
|
- if policy(@tokens).update?
|
||||||
%td= link_to 'Show', token
|
%th
|
||||||
%td= link_to 'Edit', edit_token_path(token)
|
%th
|
||||||
%td= link_to 'Destroy', token, method: :delete, data: { confirm: 'Are you sure?' }
|
%th
|
||||||
|
|
||||||
|
%tbody
|
||||||
|
- @tokens.each do |token|
|
||||||
|
%tr
|
||||||
|
%td= raw "<img class='token-logo' src=#{token.logo_url} />"
|
||||||
|
%td= link_to token.canister_id, token
|
||||||
|
%td= token.standard
|
||||||
|
%td= token.symbol
|
||||||
|
%td= token.name
|
||||||
|
%td= token.total_supply
|
||||||
|
%td= token.decimals
|
||||||
|
%td= token.transfer_fee
|
||||||
|
- if policy(token).update?
|
||||||
|
%td= link_to 'Show', token
|
||||||
|
%td= link_to 'Edit', edit_token_path(token)
|
||||||
|
%td= link_to 'Destroy', token, method: :delete, data: { confirm: 'Are you sure?' }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user