Avoid horizontal scroll bar

This commit is contained in:
Stella Rouzi 2017-06-13 10:22:23 +03:00
parent e3f5b48d26
commit 2f70a1ddd1

View file

@ -6,26 +6,26 @@
= link_to 'Create Organization', new_admin_organization_path, class: 'btn btn-success pull-right' = link_to 'Create Organization', new_admin_organization_path, class: 'btn btn-success pull-right'
%p.text-muted %p.text-muted
Manage organizations in OSEM Manage organizations in OSEM
.row .row
.col-md-12 .col-md-12
%table.table.table-hover.datatable %table.table.table-hover.datatable
%thead %thead
%th Name %th Name
%th Upcoming Conferences %th Upcoming Conferences
%th Past Conferences %th Past Conferences
%th Actions %th Actions
%tbody %tbody
- @organizations.each do |organization| - @organizations.each do |organization|
%tr %tr
%td %td
= organization.name = organization.name
%td %td
= organization.conferences.count = organization.conferences.count
%td %td
= organization.conferences.count = organization.conferences.count
%td %td
.btn-group .btn-group
= link_to 'Edit', edit_admin_organization_path(organization), = link_to 'Edit', edit_admin_organization_path(organization),
method: :get, class: 'btn btn-primary' method: :get, class: 'btn btn-primary'
= link_to 'Delete', admin_organization_path(organization), = link_to 'Delete', admin_organization_path(organization),
method: :delete, class: 'btn btn-danger', data: { confirm: "Warning: This will delete #{organization.name} and all its data which includes data for all conferences within #{organization.name}. Do you really want to continue?" } method: :delete, class: 'btn btn-danger', data: { confirm: "Warning: This will delete #{organization.name} and all its data which includes data for all conferences within #{organization.name}. Do you really want to continue?" }