2016-09-04 21:50:32 -04:00
|
|
|
- content_for :head do
|
|
|
|
|
%meta{ property: "og:title", content: @conference.title }
|
2022-05-06 14:27:15 +02:00
|
|
|
%meta{ property: "og:site_name", content: ENV.fetch('OSEM_NAME', 'OSEM') }
|
2016-09-04 21:50:32 -04:00
|
|
|
%meta{ property: "og:description", content: @conference.description }
|
|
|
|
|
%meta{ property: "og:url", content: conference_url(@conference.short_title) }
|
2018-05-15 21:21:00 -07:00
|
|
|
%meta{ property: "twitter:title", content: (@conference.title) }
|
|
|
|
|
%meta{ property: "twitter:description", content: @conference.description }
|
2016-09-04 21:50:32 -04:00
|
|
|
- if @conference.picture?
|
2018-05-15 21:21:00 -07:00
|
|
|
%meta{ property: "og:image", content: @image_url }
|
|
|
|
|
%meta{ property: "og:image:secure_url", content: @image_url }
|
2018-05-16 19:15:34 -07:00
|
|
|
%meta{ property: "twitter:card", content: "summary_large_image" }
|
|
|
|
|
%meta{ property: "twitter:image", content: @image_url }
|
|
|
|
|
- else
|
|
|
|
|
%meta{ property: "twitter:card", content: "summary" }
|
2016-09-04 21:50:32 -04:00
|
|
|
|
2016-01-17 20:49:30 +01:00
|
|
|
= content_for :title do
|
|
|
|
|
= @conference.title
|
|
|
|
|
|
2018-05-15 21:21:00 -07:00
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
#splash
|
2017-11-29 09:15:42 -08:00
|
|
|
-# header/description
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'header', conference: @conference, venue: @conference.venue
|
2014-11-18 00:58:43 +01:00
|
|
|
|
2017-11-29 09:15:42 -08:00
|
|
|
-# calls for content, or program
|
|
|
|
|
- if @conference.splashpage.include_cfp
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'call_for_content', conference: @conference,
|
|
|
|
|
call_for_events: @call_for_events, call_for_tracks: @call_for_tracks,
|
2018-03-17 18:05:06 +02:00
|
|
|
call_for_booths: @call_for_booths,
|
2017-12-21 19:06:36 -08:00
|
|
|
event_types: @event_types, tracks: @track_names
|
|
|
|
|
|
2017-11-29 09:15:42 -08:00
|
|
|
- if @conference.splashpage.include_program
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'program', conference: @conference, tracks: @tracks,
|
|
|
|
|
highlights: @highlights, booths: @booths
|
2017-11-29 09:15:42 -08:00
|
|
|
|
|
|
|
|
-# attendance/registration
|
2017-11-27 20:04:54 -08:00
|
|
|
- if @conference.splashpage.include_registrations
|
|
|
|
|
- if @conference.registration_open?
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'registration', conference: @conference,
|
|
|
|
|
registration_period: @conference.registration_period,
|
2018-01-04 00:37:16 +05:30
|
|
|
tickets: @tickets, conference_id: @conference.short_title
|
2017-11-27 20:04:54 -08:00
|
|
|
- if @conference.splashpage.include_tickets && @conference.tickets.any?
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'tickets', conference: @conference, tickets: @tickets
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-29 09:15:42 -08:00
|
|
|
-# geo
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_venue && @conference.venue
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'venue', conference: @conference, venue: @conference.venue,
|
|
|
|
|
commercial: @conference.venue.commercial
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_lodgings && @conference.lodgings.any?
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'lodging', venue: @conference.venue, lodgings: @lodgings
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-29 09:15:42 -08:00
|
|
|
-# sponsorship
|
2017-11-21 10:14:54 -08:00
|
|
|
- if @conference.splashpage.include_sponsors
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'sponsors', conference: @conference,
|
2018-01-17 17:03:23 -08:00
|
|
|
sponsorship_levels: @sponsorship_levels,
|
|
|
|
|
sponsors: @sponsors
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2018-05-15 21:21:00 -07:00
|
|
|
|
2017-11-29 09:15:42 -08:00
|
|
|
-# footer
|
2017-11-27 20:04:54 -08:00
|
|
|
- if @conference.splashpage.include_social_media
|
|
|
|
|
- if @conference.contact.has_social_media?
|
2017-12-21 19:06:36 -08:00
|
|
|
= render 'social_media', contact: @conference.contact
|
2017-11-20 19:46:12 -08:00
|
|
|
= render 'footer'
|
2014-11-18 00:58:43 +01:00
|
|
|
|
2019-02-16 00:31:15 +01:00
|
|
|
- content_for :script_head do
|
|
|
|
|
:javascript
|
|
|
|
|
var triangle_tcs = tinycolor("#{h(@conference.color)}").monochromatic();
|
|
|
|
|
var triangle_colors = triangle_tcs.map(function(t) {
|
|
|
|
|
return t.toHexString();
|
|
|
|
|
});
|
|
|
|
|
$(function () {
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
var triangle_width = document.body.clientWidth;
|
|
|
|
|
var triangle_height = ($( "#banner" ).height() + 200 );
|
|
|
|
|
var pattern = Trianglify({ width: triangle_width,
|
|
|
|
|
height: triangle_height,
|
|
|
|
|
cell_size: 100,
|
|
|
|
|
x_colors: triangle_colors
|
|
|
|
|
});
|
|
|
|
|
$('#banner').css('background-image', 'url("' + pattern.png() + '")');
|
2014-11-20 14:57:03 +01:00
|
|
|
});
|
2019-02-16 00:31:15 +01:00
|
|
|
});
|