2016-09-04 21:50:32 -04:00
|
|
|
- content_for :head do
|
|
|
|
|
%meta{ property: "og:title", content: @conference.title }
|
|
|
|
|
%meta{ property: "og:site_name", content: (ENV['OSEM_NAME'] || 'OSEM') }
|
|
|
|
|
%meta{ property: "og:description", content: @conference.description }
|
|
|
|
|
%meta{ property: "og:url", content: conference_url(@conference.short_title) }
|
|
|
|
|
- if @conference.picture?
|
|
|
|
|
%meta{ property: "og:image", content: @conference.picture_url }
|
|
|
|
|
%meta{ property: "og:image:secure_url", content: @conference.picture_url }
|
|
|
|
|
|
2016-01-17 20:49:30 +01:00
|
|
|
= content_for :title do
|
|
|
|
|
= @conference.title
|
|
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
#splash
|
2017-11-21 10:14:54 -08:00
|
|
|
// header/description
|
2017-11-21 10:06:58 -08:00
|
|
|
= render 'header'
|
2014-11-18 00:58:43 +01:00
|
|
|
|
2017-11-21 10:14:54 -08:00
|
|
|
// attendance/registration
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_registrations && @conference.registration_open?
|
2017-11-21 09:54:27 -08:00
|
|
|
= render 'registration'
|
2017-11-21 10:14:54 -08:00
|
|
|
- if @conference.splashpage.include_tickets && @conference.tickets.any? && @conference.pending?
|
|
|
|
|
= render 'tickets'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-21 10:26:19 -08:00
|
|
|
// calls for content, or program
|
2017-11-21 10:56:46 -08:00
|
|
|
- if @conference.splashpage.include_cfp
|
|
|
|
|
= render 'call_for_content'
|
2017-11-21 10:14:54 -08:00
|
|
|
- if @conference.splashpage.include_program
|
|
|
|
|
= render 'schedule_splashpage'
|
2017-08-17 13:36:46 +03:00
|
|
|
|
2017-11-21 10:14:54 -08:00
|
|
|
// geo
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_venue && @conference.venue
|
2017-11-21 09:54:27 -08:00
|
|
|
= render 'venue'
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_lodgings && @conference.lodgings.any?
|
2017-11-21 09:54:27 -08:00
|
|
|
= render 'lodging'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-21 10:14:54 -08:00
|
|
|
// sponsorship
|
|
|
|
|
- if @conference.splashpage.include_sponsors
|
2017-11-21 09:54:27 -08:00
|
|
|
= render 'sponsors'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-21 10:14:54 -08:00
|
|
|
// footer
|
2017-11-20 19:46:12 -08:00
|
|
|
- if @conference.splashpage.include_social_media && @conference.contact.has_social_media?
|
2017-11-21 09:54:27 -08:00
|
|
|
= render 'social_media'
|
2017-11-20 19:46:12 -08:00
|
|
|
= render 'footer'
|
2014-11-18 00:58:43 +01:00
|
|
|
|
2017-11-26 20:37:02 -08:00
|
|
|
= yield :modals
|
|
|
|
|
|
2017-11-21 09:54:27 -08:00
|
|
|
- cache [@conference.color, '#splash#inlinejs'] do
|
|
|
|
|
- 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
|
|
|
});
|