Integrate the splash page into the general layout
* Cleanup the CSS * Fix more views then you have fingers and toes * Introduce position(weight) for sponsor levels * Fix bootstrap/datatable integration
This commit is contained in:
parent
7acd16f923
commit
f2cdea4f1a
56 changed files with 1191 additions and 1266 deletions
33
app/views/conference/_sponsors.html.haml
Normal file
33
app/views/conference/_sponsors.html.haml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a.smoothscroll{ href: '#sponsors' } Sponsors
|
||||
|
||||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
%h2 Sponsors
|
||||
%p.lead
|
||||
whom without,
|
||||
= @conference.short_title
|
||||
wouldn't be possible!
|
||||
- @conference.sponsorship_levels.each do |sponsorship_level|
|
||||
-if sponsorship_level.sponsors.any?
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h3
|
||||
= sponsorship_level.title
|
||||
- sponsorship_level.sponsors.each_slice(3) do |slice|
|
||||
.row
|
||||
- slice.each do |sponsor|
|
||||
.col-md-4
|
||||
= link_to("http://#{sponsor.website_url}", class: 'thumbnail') do
|
||||
= image_tag(sponsor.logo(:large), alt: "#{sponsor.name} Logo", title: "#{sponsor.description}")
|
||||
-if @conference.contact and !@conference.contact.sponsor_email.blank?
|
||||
.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!
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue