.companies-list-wrapper.mt20 - if @companies.present? table.table.table-bordered thead th Company Name th Subdomain th First Name th Last Name th Number th Email th Date Joined th Vendor th Integrations th Approved Date tbody - @companies.each do |company| tr td= company.name td= company.subdomain td= company.try(:master_user).try(:first_name) td= company.try(:master_user).try(:last_name ) td= company.try(:master_user).try(:number) td= company.email td= company.created_at.strftime('%b %d, %Y') td = company.vendor? ? "Yes" : "No" td - company.integrations.each do |i| div - if i.active? .label.label-success.pr10 = fa_icon 'check-square-o', text: i.integration_type_label - else .label.label-danger.pr10 = fa_icon 'square', text: "Authorize #{i.integration_type_label}" div = link_to admin_company_integrations_path(company), class: 'pull-right' do = fa_icon 'cog' td - if company.approved? = company.approved_at.strftime('%b %d, %Y') - elsif company.ready_for_approval? = link_to 'Approve', approve_admin_company_path(company), turboboost: true, class: 'btn btn-success' - else |- = paginate @companies