Fix gigitty link

The modal didn't really work on mobiles. On mobiles you also need the schedule
link because it's hard to point your mobile to a QR code on your mobile...
This commit is contained in:
Henne Vogelsang 2019-05-24 15:11:53 +02:00
parent 9df85e5ae4
commit e6049adc52
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
7 changed files with 31 additions and 33 deletions

View file

@ -43,9 +43,6 @@ class SchedulesController < ApplicationController
end
@selected_schedules_ids.compact!
@event_schedules_by_room_id = event_schedules.select { |s| @selected_schedules_ids.include?(s.schedule_id) }.group_by(&:room_id)
@qr_code = RQRCode::QRCode.new(conference_schedule_url).as_svg(offset: 20, color: '000',
shape_rendering: 'crispEdges',
module_size: 11)
end
end
end
@ -63,6 +60,10 @@ class SchedulesController < ApplicationController
@tag = day.strftime('%Y-%m-%d') if day
end
def app
@qr_code = RQRCode::QRCode.new(conference_schedule_url).as_svg(offset: 20, color: '000', shape_rendering: 'crispEdges', module_size: 11)
end
private
def respond_to_options