.page-header
  %h3 Users (#{users.length})
- if users.present?
  %table.datatable#users
    %thead
      %th Name
      %th Email
      - if ( can? :unassign_org_admins, organization )
        %th
          Actions
    %tbody
      - users.each do |user|
        %tr
          %td= user.name
          %td= user.email
          - if ( can? :unassign_org_admins, organization )
            %td
              = link_to 'Remove from organization admin',
                unassign_org_admins_admin_organization_path(organization.id,
                role.name,
                user: {email: user.email}),
                method: :delete,
                class: 'btn btn-danger'
- else
  %h5 No users found!
