pagination
This commit is contained in:
parent
847357dae7
commit
80d94337a2
2 changed files with 6 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ class ConferencesController < ApplicationController
|
|||
end
|
||||
if splashpage.include_happening_now
|
||||
@event_list = get_happening_now_events_schedules(@conference)
|
||||
@pagy, @events_schedules = pagy_array(@event_list, items: 2)
|
||||
@pagy, @events_schedules = pagy_array(@event_list, items: 3)
|
||||
@happening_now_url = happening_now_conference_schedule_path(conference_id: @conference.short_title, format: :json)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -54,9 +54,10 @@
|
|||
- if @conference.splashpage.include_happening_now
|
||||
- if @events_schedules.any?
|
||||
.row
|
||||
%h2.text-center Happening Now
|
||||
%h2.text-center{:style => "margin-bottom:30px"} Happening Now
|
||||
- for event_schedule in @events_schedules
|
||||
= render 'schedules/event', conference: @conference, event_schedule: event_schedule, event: event_schedule.event
|
||||
- if @events_schedules.length > 3
|
||||
.container{:style => "margin:auto; width:50%"}
|
||||
!= pagy_nav(@pagy)
|
||||
- else
|
||||
|
|
@ -66,6 +67,7 @@
|
|||
.col-md-6.col-md-pull-6.col-lg-8.col-lg-pull-4
|
||||
#about
|
||||
.row
|
||||
%h2.text-left{:style => "margin-bottom:30px"} About the Conference
|
||||
= markdown(@conference.description, escape_html=false)
|
||||
.trapezoid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue