From 613161bbc743c7c5a34f2a4d1c9d9bdc4b5306b0 Mon Sep 17 00:00:00 2001 From: Sasi Olin Date: Sun, 14 Feb 2021 23:21:56 +0100 Subject: [PATCH] Add buttons in the interface --- app/views/conferences/index.html.haml | 5 +++++ app/views/schedules/show.html.haml | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/views/conferences/index.html.haml b/app/views/conferences/index.html.haml index 7146b8fc..5517a292 100644 --- a/app/views/conferences/index.html.haml +++ b/app/views/conferences/index.html.haml @@ -18,6 +18,11 @@ #antiquated.collapse - @antiquated.each do |conference| = render '/conferences/conference_details', conference: conference + %p + Add the events to your calendar: + %span.btn-group + = link_to("Days only", calendar_url(protocol: 'webcal', format: 'ics'), class: 'btn btn-default') + = link_to("Detailed", calendar_url(protocol: 'webcal', format: 'ics', full: true), class: 'btn btn-default') -content_for :script_body do :javascript diff --git a/app/views/schedules/show.html.haml b/app/views/schedules/show.html.haml index 355cafad..03aa16fe 100644 --- a/app/views/schedules/show.html.haml +++ b/app/views/schedules/show.html.haml @@ -26,9 +26,13 @@ .visible-md-inline.visible-lg-inline = render partial: 'carousel', locals: { date: date, hrs_per_slide: 3 } - %p.pull-right - = link_to app_conference_schedule_path do - Get the mobile app! + %p + %span + = link_to conference_schedule_url(protocol: 'webcal', format: 'ics') do + Add the schedule to your calendar + %span.pull-right + = link_to app_conference_schedule_path do + Get the mobile app! :javascript // change of active tab and the button title when a date is clicked