Commit a95e0868 authored by yala's avatar yala

update events controller to filter custom event scopes

parent d77d0243
......@@ -342,6 +342,20 @@ class EventsController < ApplicationController
@prefiltered_events = @conference.events.special_sessions
when 'individual_papers'
@prefiltered_events = @conference.events.individual_papers
when 'poster_presentations'
@prefiltered_events = @conference.events.poster_presentations
when 'participatory_sessions'
@prefiltered_events = @conference.events.participatory_sessions
when 'activist_sessions'
@prefiltered_events = @conference.events.activist_sessions
when 'artistic_sessions'
@prefiltered_events = @conference.events.artistic_sessions
when 'keynotes'
@prefiltered_events = @conference.events.keynotes
when 'plenary_sessions'
@prefiltered_events = @conference.events.plenary_sessions
when 'highlights'
@prefiltered_events = @conference.events.highlights
else
@prefiltered_events = @conference.events
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment