added user_propsals to show all talks irrespective of conference
closes #1810
This commit is contained in:
parent
8442eb813f
commit
0fdef06ebf
6 changed files with 112 additions and 0 deletions
|
|
@ -18,6 +18,11 @@ class ConferencesController < ApplicationController
|
|||
@program = @conference.program
|
||||
end
|
||||
|
||||
def user_proposals
|
||||
event_types = EventType.where(title: 'Talk').collect(&:id)
|
||||
@events = Event.includes(program: :conference).where(event_type_id: event_types).order(created_at: :desc)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def load_conference_by_domain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue