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
|
2014-11-20 16:52:55 +01:00
|
|
|
= image_tag(@conference.logo(:original), class: 'img-responsive img-center', id: 'splash-logo') if @conference.logo?
|
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)
|
|
|
|
|
|
2014-11-20 14:57:03 +01:00
|
|
|
- if @conference.registration_open? and @conference.splashpage.include_registrations
|
|
|
|
|
%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
|
|
|
|
2014-12-08 18:08:21 +02:00
|
|
|
- if @conference.cfp_open? and @conference.splashpage.include_cfp
|
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
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
- if @conference.venue and @conference.splashpage.include_venue
|
2014-11-20 14:57:03 +01:00
|
|
|
%section#venue
|
|
|
|
|
= render 'venue'
|
|
|
|
|
|
|
|
|
|
- if @conference.lodgings.any? and @conference.splashpage.include_lodgings
|
|
|
|
|
%section#lodging
|
|
|
|
|
= render 'lodging'
|
|
|
|
|
|
2014-12-05 16:04:34 +01:00
|
|
|
- if @conference.tickets.any? and @conference.splashpage.include_tickets and @conference.pending?
|
2014-11-14 11:58:36 +01:00
|
|
|
%section#tickets
|
|
|
|
|
= render 'tickets'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
- if @conference.sponsors.any? and @conference.splashpage.include_sponsors
|
|
|
|
|
%section#sponsors
|
|
|
|
|
= render 'sponsors'
|
2014-11-20 14:57:03 +01:00
|
|
|
|
2014-12-08 18:08:21 +02:00
|
|
|
- if @conference.contact.has_social_media? and @conference.splashpage.include_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
|
|
|
|
|
var triangle_tcs = tinycolor("#{@conference.color}").monochromatic();
|
|
|
|
|
var triangle_colors = triangle_tcs.map(function(t) { return t.toHexString(); });
|
2014-11-20 14:57:03 +01:00
|
|
|
$(function () {
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
var t = new Trianglify({cellsize: 100, x_gradient: triangle_colors });
|
|
|
|
|
var pattern = t.generate(document.body.clientWidth, ($( "#banner" ).height() + 200 ));
|
|
|
|
|
$('#banner').css('background-image', pattern.dataUrl);
|
|
|
|
|
});
|
2014-11-25 10:47:18 +01:00
|
|
|
});
|