2014-05-13 15:34:35 +05:30
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.well
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4.text-center
|
|
|
|
|
= image_tag(conference.logo(:original), class: 'img-responsive') if conference.logo?
|
|
|
|
|
.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-05-13 15:34:35 +05:30
|
|
|
- if conference.venue.name and conference.venue.website and conference.venue.address
|
|
|
|
|
%p
|
|
|
|
|
%small
|
|
|
|
|
= link_to conference.venue.name, conference.venue.website
|
|
|
|
|
,
|
|
|
|
|
\#{link_to conference.venue.address, "http://maps.google.com/maps?q=#{conference.venue.address}"}
|
|
|
|
|
- if conference.venue.description
|
|
|
|
|
= simple_format(conference.venue.description, class: 'lead')
|
|
|
|
|
.col-md-2
|
|
|
|
|
.btn-group-vertical
|
2014-07-25 13:13:35 +05:30
|
|
|
- unless current_user.blank?
|
|
|
|
|
- if Conference.joins(:subscriptions).merge(current_user.subscriptions).include? conference
|
|
|
|
|
= link_to "Unsubscribe", subscription_conference_path(conference.short_title), method: "DELETE", class: "btn btn-danger btn-group-vertical"
|
|
|
|
|
-else
|
|
|
|
|
= link_to "Subscribe", subscription_conference_path(conference.short_title), method: "PATCH", class: "btn btn-info btn-group-vertical"
|
|
|
|
|
|
2014-05-19 21:21:06 +05:30
|
|
|
- if !@conference || @conference != conference
|
2014-06-16 19:46:18 +05:30
|
|
|
- if conference.make_conference_public?
|
|
|
|
|
= link_to "View Conference", 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)
|
2014-08-12 11:51:59 +03:00
|
|
|
= link_to "Modify Registration", conference_register_path(conference.short_title), :class =>"btn btn-default"
|
2014-05-13 15:34:35 +05:30
|
|
|
- else
|
2014-08-12 11:51:59 +03:00
|
|
|
= link_to "Register", conference_register_path(conference.short_title), :class =>"btn btn-success"
|
2014-05-13 15:34:35 +05:30
|
|
|
= link_to "Schedule", conference_schedule_path(conference.short_title), :class =>"btn btn-default" if conference.call_for_papers and conference.call_for_papers.schedule_public
|
2014-06-23 19:07:50 +03:00
|
|
|
- if !current_user.nil? && current_user.proposal_count(conference) > 0
|
2014-05-13 15:34:35 +05:30
|
|
|
= link_to "View My Proposals", conference_proposal_index_path(conference.short_title), :class =>"btn btn-default"
|
|
|
|
|
- elsif conference.cfp_open?
|
2014-07-10 21:29:07 +05:30
|
|
|
= link_to "Submit Proposal", conference_proposal_index_path(conference.short_title), :class =>"btn btn-default"
|