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
|
2014-08-30 12:08:24 +02:00
|
|
|
- if @conference.splashpage
|
2014-11-20 14:57:03 +01:00
|
|
|
#banner
|
2014-11-18 00:58:43 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
2014-11-20 14:57:03 +01:00
|
|
|
.col-md-8.col-md-offset-2#header
|
2014-11-18 00:58:43 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-4
|
2016-04-27 15:17:12 +02:00
|
|
|
= image_tag(@conference.picture_url, class: 'img-responsive img-center', id: 'splash-logo') if @conference.picture?
|
2014-11-18 00:58:43 +01:00
|
|
|
.col-md-8
|
|
|
|
|
%h1
|
|
|
|
|
= @conference.title
|
|
|
|
|
%p.lead
|
2014-11-20 14:57:03 +01:00
|
|
|
- if @conference.venue
|
|
|
|
|
= "#{@conference.venue.city} / #{@conference.venue.country_name}"
|
2014-11-18 00:58:43 +01:00
|
|
|
- if @conference.start_date && @conference.end_date
|
2014-11-20 14:57:03 +01:00
|
|
|
%br
|
2014-11-18 00:58:43 +01:00
|
|
|
= date_string(@conference.start_date, @conference.end_date)
|
|
|
|
|
|
|
|
|
|
- unless @conference.description.blank?
|
|
|
|
|
%section#about
|
2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
2014-11-18 00:58:43 +01:00
|
|
|
.col-md-8.col-md-offset-2
|
|
|
|
|
%h3.text-center
|
|
|
|
|
= markdown(@conference.description)
|
|
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_registrations && @conference.registration_open?
|
2014-11-20 14:57:03 +01:00
|
|
|
%section#registration
|
|
|
|
|
= render 'registration'
|
|
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
- if @conference.splashpage.include_program
|
|
|
|
|
%section#program
|
2015-03-09 15:31:06 +01:00
|
|
|
= render 'schedule_splashpage'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_cfp && @conference.call_for_events.try(:open?)
|
2014-11-14 11:58:36 +01:00
|
|
|
%section#callforpapers
|
2014-11-25 10:47:18 +01:00
|
|
|
= render 'call_for_paper'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_cfp && @conference.call_for_tracks.try(:open?)
|
2017-08-17 13:36:46 +03:00
|
|
|
%section#callfortracks
|
|
|
|
|
= render 'call_for_tracks'
|
|
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_venue && @conference.venue
|
2014-11-20 14:57:03 +01:00
|
|
|
%section#venue
|
|
|
|
|
= render 'venue'
|
|
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_lodgings && @conference.lodgings.any?
|
2014-11-20 14:57:03 +01:00
|
|
|
%section#lodging
|
|
|
|
|
= render 'lodging'
|
|
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_tickets && @conference.tickets.any? && @conference.pending?
|
2014-11-14 11:58:36 +01:00
|
|
|
%section#tickets
|
|
|
|
|
= render 'tickets'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_booths && @conference.confirmed_booths.any?
|
2017-07-27 11:22:14 +03:00
|
|
|
%section#booths
|
|
|
|
|
= render 'booths'
|
|
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_sponsors && @conference.sponsors.any?
|
2014-11-14 11:58:36 +01:00
|
|
|
%section#sponsors
|
|
|
|
|
= render 'sponsors'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2017-11-17 19:34:26 -08:00
|
|
|
- if @conference.splashpage.include_social_media && @conference.contact.has_social_media?
|
2014-11-14 11:58:36 +01:00
|
|
|
%section#social-media
|
|
|
|
|
= render 'social_media'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
// grmbl
|
|
|
|
|
= render 'footer'
|
2014-11-18 00:58:43 +01:00
|
|
|
|
|
|
|
|
- content_for :script_head do
|
|
|
|
|
:javascript
|
2017-10-12 04:40:57 +05:30
|
|
|
var triangle_tcs = tinycolor("#{h(@conference.color)}").monochromatic();
|
2014-11-18 00:58:43 +01:00
|
|
|
var triangle_colors = triangle_tcs.map(function(t) { return t.toHexString(); });
|
2014-11-20 14:57:03 +01:00
|
|
|
$(function () {
|
|
|
|
|
$(document).ready(function() {
|
2016-02-06 19:19:53 +01:00
|
|
|
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
|
|
|
});
|
2014-11-25 10:47:18 +01:00
|
|
|
});
|