pagination happening now
This commit is contained in:
parent
27f83ddd18
commit
77b6dac6a2
8 changed files with 188 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
before_action :set_paper_trail_whodunnit
|
||||
include ApplicationHelper
|
||||
include Pagy::Backend
|
||||
add_flash_types :error
|
||||
protect_from_forgery with: :exception, prepend: true
|
||||
before_action :store_location
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ class ConferencesController < ApplicationController
|
|||
@sponsors = @conference.sponsors
|
||||
end
|
||||
if splashpage.include_happening_now
|
||||
@events_schedules = get_happening_now_events_schedules(@conference)
|
||||
@event_list = get_happening_now_events_schedules(@conference)
|
||||
@pagy, @events_schedules = pagy_array(@event_list, items: 2)
|
||||
@happening_now_url = happening_now_conference_schedule_path(conference_id: @conference.short_title, format: :json)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue