2014-11-14 11:58:36 +01:00
|
|
|
= content_for :splash_nav do
|
|
|
|
|
%li
|
|
|
|
|
%a.smoothscroll{ href: '#sponsors' } Sponsors
|
|
|
|
|
|
2018-01-17 17:03:23 -08:00
|
|
|
- cache [conference, sponsors, sponsorship_levels, '#splash#sponsors'] do
|
2017-11-21 09:54:27 -08:00
|
|
|
%section#sponsors
|
|
|
|
|
.container
|
2017-12-21 19:06:36 -08:00
|
|
|
- sponsorship_levels.each do |sponsorship_level|
|
2017-11-27 20:04:54 -08:00
|
|
|
- if sponsorship_level.sponsors.any?
|
2017-11-26 20:37:02 -08:00
|
|
|
.row.text-center
|
|
|
|
|
%h3
|
|
|
|
|
= sponsorship_level.title
|
|
|
|
|
= 'Sponsor'.pluralize(sponsorship_level.sponsors.length)
|
|
|
|
|
.row.row-centered
|
|
|
|
|
- sponsorship_level.sponsors.each do |sponsor|
|
|
|
|
|
.col-md-4.col-sm-4.col-centered.col-top
|
2017-11-27 20:04:54 -08:00
|
|
|
%a{ href: '#', data: { toggle: 'modal',
|
|
|
|
|
target: "#modal-sponsor-#{sponsor.id}" } }
|
2017-12-21 19:06:36 -08:00
|
|
|
- if sponsor.logo_file_name
|
|
|
|
|
= image_tag get_logo(sponsor),
|
|
|
|
|
class: ['img-responsive', 'img-sponsor',
|
|
|
|
|
"img-sponsor-#{sponsorship_level.position}"],
|
|
|
|
|
title: sponsor.name
|
|
|
|
|
- else
|
|
|
|
|
%h4.text-center= sponsor.name
|
2016-04-20 13:35:49 +05:30
|
|
|
|
2017-12-21 19:06:36 -08:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
%h3.text-center
|
|
|
|
|
Want to sponsor?
|
|
|
|
|
= link_to(sponsorship_mailto(conference)) do
|
|
|
|
|
Contact us!
|
2017-11-29 15:29:06 -08:00
|
|
|
|
2018-01-17 17:03:23 -08:00
|
|
|
- sponsors.each do |sponsor|
|
2017-11-29 15:29:06 -08:00
|
|
|
- content_for :modals do
|
|
|
|
|
= render 'modal_description', object: sponsor
|