mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
When viewing a conference, the Instance Name in the header points to /organizations. On the organizations index, there's a button to see conferences, but it does nothing. This makes it easy for public users to get lost. This commit: * Adds a function to the organizations controller to show child conferences * Adds a public permission to see conferences through an organization * Represents a subset of conferences, reusing conferences/index view, for the organization
18 lines
652 B
Text
18 lines
652 B
Text
.container
|
|
.row
|
|
.col-md-12.page-header
|
|
%h1
|
|
Organizations
|
|
.btn-group.pull-right
|
|
/ = link_to 'Add new', new_organization_path, class: 'btn btn-mini btn-success'
|
|
- @organizations.each do |organization|
|
|
.col-md-4
|
|
.thumbnail
|
|
= image_tag(organization.picture.thumb.url, width: '20%')
|
|
.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'
|