- @page_title = t('users') + ' - ' + default_page_title = render_region :top .outset %table.index.tablesaw#users %thead %tr - render_region :thead do |thead| - thead.title_header do %th.user== #{t('name')} / #{t('username')} - thead.roles_header do %th.roles= t('roles') - thead.actions_header do %th.actions{:style=>'width:9em'}= t('modify') %tbody - @users.each do |user| %tr[user] - render_region :tbody, :locals => {:user => user} do |tbody| - tbody.title_cell do %td.name = link_to user.name, edit_admin_user_url(user) - tbody.roles_cell do %td.roles= roles(user) - tbody.actions_cell do %td.actions - if !current_user.admin? %span.action.disabled %i.fas.fa-minus-circle = t('remove') - else = link_to remove_admin_user_url(user), :class => 'action' do %i.fas.fa-minus-circle = t('remove') - render_region :bottom do |bottom| - bottom.new_button do - if current_user.admin? #actions = pagination_for(@users) %ul %li = link_to new_admin_user_url, :class => 'action_button' do %i.fas.fa-plus-circle = t('new_user')