Show code of conduct on organizations

This commit is contained in:
James Mason 2018-03-16 12:18:09 -07:00 committed by Ana María Martínez Gómez
parent a6daff8582
commit 217ec1a46f
5 changed files with 30 additions and 7 deletions

View file

@ -6,13 +6,16 @@
.btn-group.pull-right
/ = link_to 'Add new', new_organization_path, class: 'btn btn-mini btn-success'
- @organizations.each do |organization|
.col-md-4
.col-md-4{ id: "organization-#{organization.id}" }
.thumbnail
= image_tag(organization.picture.thumb.url, width: '20%') if organization.picture?
.caption
%h4
= organization.name
= link_to 'Conferences',
conferences_organization_path(organization),
class: 'btn btn-success'
/ = link_to 'Edit', edit_organization_path(organization), class: 'btn btn-mini btn-default'
.btn-group
= link_to 'Conferences',
conferences_organization_path(organization),
class: 'btn btn-success'
- unless organization.code_of_conduct.blank?
= link_to 'Code of Conduct', [:code_of_conduct, organization], class: 'btn btn-info'
/ = link_to 'Edit', edit_organization_path(organization), class: 'btn btn-mini btn-default'