mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
44 lines
2 KiB
Text
44 lines
2 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
|
|
.row
|
|
.col-md-12.text-center
|
|
%h2 Sponsors
|
|
- @conference.sponsorship_levels.each do |sponsorship_level|
|
|
-if sponsorship_level.sponsors.any?
|
|
- sponsorship_level.sponsors.each_slice(3) do |slice|
|
|
.row.row-centered
|
|
- slice.each do |sponsor|
|
|
.col-md-4.col-sm-4.col-centered.col-top
|
|
%a{ href: '#', data: { toggle: 'modal', target: "#modal_#{sponsor.id}" } }
|
|
= image_tag get_logo(sponsor), class: "img-responsive img-sponsor img-sponsor-#{sponsorship_level.position}"
|
|
|
|
.modal.fade{ id: "modal_#{sponsor.id}" }
|
|
.modal-dialog
|
|
.modal-content
|
|
.modal-header
|
|
%button.close{ data: { dismiss: 'modal' } }
|
|
x
|
|
.modal-title
|
|
= sponsor.name
|
|
.modal-body.text-center
|
|
.logo
|
|
= link_to sponsor.website_url, target: '_blank' do
|
|
= image_tag get_logo(sponsor), class: "img-responsive img-sponsor img-sponsor-#{sponsorship_level.position}"
|
|
.description
|
|
= sponsor.description
|
|
.modal-footer
|
|
= link_to nil, "#{sponsor.website_url}", target: '_blank'
|
|
- if @conference.call_for_sponsors.try(:open?)
|
|
.row
|
|
.col-md-12
|
|
%p.text-muted.text-center
|
|
%small
|
|
Want to sponsor #{@conference.short_title}?
|
|
= link_to("mailto: #{@conference.contact.sponsor_email}?subject=#{@conference.short_title}%20Sponsorship") do
|
|
Please contact us!
|