Adds sponsors to splash
This commit is contained in:
parent
2c27119e8e
commit
b67b21f023
4 changed files with 47 additions and 1 deletions
23
app/views/conference/_sponsor.html.haml
Normal file
23
app/views/conference/_sponsor.html.haml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#sponsors' } Sponsors
|
||||
%div.container#sponsors.text-center
|
||||
%div.row
|
||||
%div.col-md-12
|
||||
%h2 Sponsors
|
||||
-if !@conference.sponsor_description.blank?
|
||||
%p #{ @conference.sponsor_description }
|
||||
-if !@conference.sponsor_email.blank?
|
||||
%h3= mail_to "#{ @conference.sponsor_email }", 'Become a Sponsor'
|
||||
- if !@conference.sponsorship_levels.blank?
|
||||
- @conference.sponsorship_levels.each do |l|
|
||||
- if !l.sponsors.blank?
|
||||
%div.row
|
||||
%h4 #{l.title}
|
||||
- l.sponsors.each_with_index do |r,index|
|
||||
%div.col-md-4
|
||||
- if !r.logo.blank?
|
||||
= link_to image_tag(r.logo(:large), class: 'img-responsive', alt: "#{r.name} Logo", title: "#{r.description}"), "http://#{r.website_url}"
|
||||
- unless index == 0
|
||||
- if index%2 == 0
|
||||
%div.clearfix.visible-md.visible-lg
|
||||
|
|
@ -7,4 +7,6 @@
|
|||
-unless @conference.call_for_papers.blank?
|
||||
%div#callforpapers
|
||||
= render 'call_for_papers'
|
||||
%div#sponsors
|
||||
= render 'sponsor'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue