|
@ -13,14 +13,25 @@ |
|
|
- if params['controller'] == 'conferences' && params['action'] == 'show' |
|
|
- if params['controller'] == 'conferences' && params['action'] == 'show' |
|
|
= title |
|
|
= title |
|
|
- else |
|
|
- else |
|
|
%a{href: @conference.url} |
|
|
%a{href: @conference.url}=title |
|
|
= title |
|
|
|
|
|
%h2 |
|
|
%h2 |
|
|
- location = @conference.organizations.first.locations.first |
|
|
- location = @conference.organizations.first.locations.first |
|
|
= location.city + ', ' + (location.territory ? Carmen::Country.coded(location.country).subregions.coded(location.territory).name : location.country) |
|
|
= location.city + ', ' + (location.territory ? Carmen::Country.coded(location.country).subregions.coded(location.territory).name : location.country) |
|
|
%em |
|
|
%em |
|
|
= (l @conference.start_date, format: :date) + ' - ' + (l @conference.end_date, format: :date) |
|
|
= (l @conference.start_date, format: :date) + ' - ' + (l @conference.end_date, format: :date) |
|
|
- if params['controller'] != 'conferences' |
|
|
- if params['controller'] != 'conferences' |
|
|
|
|
|
- info = nil |
|
|
|
|
|
- if @conference.registration_open |
|
|
|
|
|
- if @conference.registration_info |
|
|
|
|
|
- info = @conference.registration_info |
|
|
|
|
|
- elsif @conference.end_date < Time.now |
|
|
|
|
|
- if @conference.preregistration_info |
|
|
|
|
|
- info = @conference.postregistration_info |
|
|
|
|
|
- elsif @conference.preregistration_info |
|
|
|
|
|
- info = @conference.preregistration_info |
|
|
|
|
|
- if info |
|
|
|
|
|
= info.html_safe |
|
|
|
|
|
- else |
|
|
%p= ActionView::Base.full_sanitizer.sanitize(@conference.info).gsub(/^(.{300,350}\.)(.*)$/m, '\1...') |
|
|
%p= ActionView::Base.full_sanitizer.sanitize(@conference.info).gsub(/^(.{300,350}\.)(.*)$/m, '\1...') |
|
|
.columns.medium-4.centered.align-bottom |
|
|
.columns.medium-4.centered.align-bottom |
|
|
%div |
|
|
%div |
|
|