2018-03-16 12:49:00 -07:00
|
|
|
.row{ id: "conference-#{conference.id}" }
|
2014-05-13 15:34:35 +05:30
|
|
|
.col-md-12
|
|
|
|
|
.well
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4.text-center
|
2016-04-27 15:17:12 +02:00
|
|
|
= image_tag(conference.picture_url, class: 'img-responsive') if conference.picture?
|
2014-05-13 15:34:35 +05:30
|
|
|
.col-md-6
|
|
|
|
|
%h3
|
|
|
|
|
= conference.title
|
|
|
|
|
%small
|
|
|
|
|
%b
|
2014-07-10 21:29:07 +05:30
|
|
|
= date_string(conference.start_date, conference.end_date)
|
2014-12-05 16:04:34 +01:00
|
|
|
- if conference.venue
|
|
|
|
|
%p
|
2022-05-20 16:09:31 +02:00
|
|
|
%span>= conference.city
|
2022-05-18 04:18:00 +02:00
|
|
|
- if conference.city and conference.country_name
|
|
|
|
|
\/
|
2022-05-20 16:09:31 +02:00
|
|
|
%span>= conference.country_name
|
2016-08-06 00:57:07 +02:00
|
|
|
- unless conference.description.blank?
|
2014-12-16 15:07:57 +01:00
|
|
|
%p
|
|
|
|
|
= markdown(conference.description)
|
2014-05-13 15:34:35 +05:30
|
|
|
.col-md-2
|
|
|
|
|
.btn-group-vertical
|
2014-05-19 21:21:06 +05:30
|
|
|
- if !@conference || @conference != conference
|
2014-08-30 12:08:24 +02:00
|
|
|
- if conference.splashpage && conference.splashpage.public
|
2017-03-11 13:25:39 +05:30
|
|
|
= link_to "View Conference", conference_path(conference.short_title), class: 'btn btn-default'
|
2015-10-25 13:29:02 +02:00
|
|
|
- if conference.program and conference.program.schedule_public
|
2017-03-11 13:25:39 +05:30
|
|
|
= link_to "Schedule", conference_schedule_path(conference.short_title), class: 'btn btn-default'
|
2024-06-07 17:35:41 +02:00
|
|
|
- if conference.code_of_conduct.present?
|
|
|
|
|
= link_to "Code of Conduct", code_of_conduct_conference_path(conference.short_title), class: 'btn btn-default'
|
2014-05-13 15:34:35 +05:30
|
|
|
- if conference.registration_open?
|
|
|
|
|
- if conference.user_registered?(current_user)
|
2017-03-11 13:25:39 +05:30
|
|
|
= link_to "My Registration", conference_conference_registration_path(conference.short_title), class: 'btn btn-default'
|
2014-05-13 15:34:35 +05:30
|
|
|
- else
|
2017-05-03 23:42:53 +03:00
|
|
|
= link_to "Register", new_conference_conference_registration_path(conference.short_title), class: "btn btn-default", disabled: cannot?(:new, Registration.new(conference_id: conference.id))
|
|
|
|
|
- if cannot?(:new, Registration.new(conference_id: conference.id)) && conference.registration_limit_exceeded?
|
2016-02-02 00:16:43 +01:00
|
|
|
Sorry, no places left
|
2017-08-17 13:36:46 +03:00
|
|
|
- if current_user && current_user.tracks.where(program: conference.program).length > 0
|
|
|
|
|
= link_to 'My Track Requests', conference_program_tracks_path(conference.short_title), class: 'btn btn-default'
|
2017-07-12 16:35:09 +03:00
|
|
|
- elsif can? :new, conference.program.tracks.new
|
2017-08-17 13:36:46 +03:00
|
|
|
= link_to 'Submit Track Request', new_conference_program_track_path(conference.short_title), class: 'btn btn-default'
|
2014-06-23 19:07:50 +03:00
|
|
|
- if !current_user.nil? && current_user.proposal_count(conference) > 0
|
2017-03-11 13:25:39 +05:30
|
|
|
= link_to "My Proposals", conference_program_proposals_path(conference.short_title), class: 'btn btn-default'
|
2016-04-01 16:08:04 -06:00
|
|
|
- elsif can? :new, conference.program.events.new
|
2019-03-13 21:04:39 +05:30
|
|
|
- if conference.program.cfp_open?
|
|
|
|
|
= link_to "Submit Proposal", new_conference_program_proposal_path(conference.short_title), class: 'btn btn-default'
|
2017-07-27 11:22:14 +03:00
|
|
|
- if current_user && current_user.booths.where(conference_id: conference.id).count > 0
|
2019-07-22 00:59:17 +05:30
|
|
|
= link_to "My #{(t'booth').capitalize } Requests", conference_booths_path(conference.short_title), class: 'btn btn-default'
|
2017-07-27 11:22:14 +03:00
|
|
|
- elsif can? :new, conference.booths.new
|
2019-07-22 00:59:17 +05:30
|
|
|
= link_to "Request #{(t'booth').capitalize }", new_conference_booth_path(conference.short_title), class: 'btn btn-default'
|
2014-12-05 16:04:34 +01:00
|
|
|
- if current_user.nil? || !current_user.subscribed?(conference)
|
|
|
|
|
= link_to 'Subscribe', conference_subscriptions_path(conference.short_title), method: :post, class: 'btn btn-default'
|
|
|
|
|
- else
|
|
|
|
|
= link_to 'Unsubscribe', conference_subscriptions_path(conference.short_title), method: :delete, class: 'btn btn-default'
|
2017-06-03 16:05:59 +05:30
|
|
|
- if current_user && current_user.physical_tickets.by_conference(conference).any?
|
2016-06-28 18:16:06 +03:00
|
|
|
= link_to 'My Tickets', conference_physical_tickets_path(conference.short_title), class: 'btn btn-default'
|
2018-02-23 11:52:27 +02:00
|
|
|
- surveys_after_conference = conference.surveys.after_conference.select(&:active?)
|
|
|
|
|
= link_to 'Surveys', conference_surveys_path(conference.short_title), class: 'btn btn-default' if surveys_after_conference.any? && conference.ended?
|