mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
= content_for :splash_nav do
|
|
%li
|
|
%a.smoothscroll{ href: '#sponsors' } Sponsors
|
|
|
|
- cache [conference, conference.sponsors, conference.sponsorship_levels,
|
|
conference.try(:call_for_sponsors), '#splash#sponsors'] do
|
|
%section#sponsors
|
|
.container
|
|
- conference.sponsorship_levels.each do |sponsorship_level|
|
|
- if sponsorship_level.sponsors.any?
|
|
.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
|
|
%a{ href: '#', data: { toggle: 'modal',
|
|
target: "#modal-sponsor-#{sponsor.id}" } }
|
|
= image_tag get_logo(sponsor),
|
|
class: ['img-responsive', 'img-sponsor',
|
|
"img-sponsor-#{sponsorship_level.position}"],
|
|
title: sponsor.name
|
|
|
|
- if conference.call_for_sponsors.try(:open?)
|
|
.row
|
|
.col-md-12
|
|
%h3.text-center
|
|
Want to sponsor?
|
|
= link_to(sponsorship_mailto(conference)) do
|
|
Contact us!
|
|
|
|
- conference.sponsors.each do |sponsor|
|
|
- content_for :modals do
|
|
= render 'modal_description', object: sponsor
|