Files
codeocean/app/views/external_users/index.html.slim

18 lines
569 B
Plaintext

h1 = ExternalUser.model_name.human(count: 2)
.table-responsive
table.table
thead
tr
th = t('activerecord.attributes.external_user.name')
th = t('activerecord.attributes.external_user.consumer')
th = t('shared.actions')
tbody
- @users.each do |user|
tr
td = link_to_if(policy(user).show?, user.name)
td = link_to_if(policy(user.consumer).show?, user.consumer, user.consumer)
td = link_to(t('shared.show'), user) if policy(user).show?
= render('shared/pagination', collection: @users)