mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
.container
|
|
.row
|
|
.col-md-12
|
|
.page-header
|
|
%h2 Upcoming Conferences
|
|
- @current.each do |conference|
|
|
= render '/conferences/conference_details', conference: conference
|
|
-if @antiquated and @antiquated.any?
|
|
.row
|
|
.col-md-12
|
|
%p.text-right
|
|
%button{ type: 'button', class: 'btn btn-link btn-sm', 'data-toggle' => 'collapse', 'data-target' => '#antiquated', 'aria-expanded' => 'true', 'aria-controls' => 'antiquated'}
|
|
Older conferences
|
|
%span.notranslate
|
|
= "(#{@antiquated.count})"
|
|
%i.fa.fa-chevron-right
|
|
%i.fa.fa-chevron-down{ style: 'display: none' }
|
|
#antiquated.collapse
|
|
- @antiquated.each do |conference|
|
|
= render '/conferences/conference_details', conference: conference
|
|
|
|
-content_for :script_body do
|
|
:javascript
|
|
$('#antiquated').on('hidden.bs.collapse', function () {
|
|
$( ".fa-chevron-down" ).hide();
|
|
$( ".fa-chevron-right" ).show();
|
|
})
|
|
$('#antiquated').on('shown.bs.collapse', function () {
|
|
$( ".fa-chevron-down" ).show();
|
|
$( ".fa-chevron-right" ).hide();
|
|
})
|