- if @mytokens.present? .contain %h1 My Tokens .table-container .contain %table.token-index %thead %tr %th Logo %th Symbol %th Name %th Canister %th Standard %th Total supply %th Decimals %th Transfer fee - if policy(Token).new? %th %th %th %tbody - @mytokens.each do |token| %tr %td = link_to token do %img.token-logo{src: token.logo_url} %td= link_to token.symbol, token %td= token.name %td= token.canister_id ? token.canister_id : "Prelaunch" %td= token.standard %td= token.total_supply %td= token.decimals %td= token.transfer_fee_to_f - 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?' } .contain %h1 Listing tokens %div{style: "align-self: start;"} - if policy(Token).new? = link_to 'Add Existing Token', add_existing_new_token_path = link_to 'Create New Token', new_token_path + "?create" .table-container .contain %table.token-index %thead %tr %th Logo %th Symbol %th Name %th Canister %th Standard %th Total supply %th Decimals %th Transfer fee - if policy(Token).new? %th %th %th %tbody - @tokens.each do |token| %tr %td = link_to token do %img.token-logo{src: token.logo_url} %td= link_to token.symbol, token %td= token.name %td= token.canister_id ? token.canister_id : "Prelaunch" %td= token.standard %td= token.total_supply %td= token.decimals %td= token.transfer_fee_to_f - 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?' }