sign-in check added

This commit is contained in:
rajavi-mishra 2021-04-24 23:13:12 -07:00 committed by CactusPuppy
parent 2fa7ed5542
commit 5121e0ba29
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -25,9 +25,10 @@
.col-md-4 .col-md-4
%p{style: "margin-top: 20px"} %p{style: "margin-top: 20px"}
- if @event_schedule&.start_time - if @event_schedule&.start_time
= link_to google_calendar_link(@event_schedule), target: '_blank', class: 'btn btn-success btn-mini' do - if user_signed_in?
%i.fa.fa-calendar = link_to google_calendar_link(@event_schedule), target: '_blank', class: 'btn btn-success btn-mini' do
Add to Google Calendar (beta) %i.fa.fa-calendar
Add to Google Calendar (beta)
- if can?(:update, @event) && @event.require_registration? - if can?(:update, @event) && @event.require_registration?
= link_to 'Registrations', registrations_conference_program_proposal_path(@conference.short_title, @event), class: 'btn btn-mini btn-success' = link_to 'Registrations', registrations_conference_program_proposal_path(@conference.short_title, @event), class: 'btn btn-mini btn-success'
- if can?(:edit, @event) - if can?(:edit, @event)