Sponsor dashboard added, with sponsor component for splash page
This commit is contained in:
parent
643b8b173a
commit
ea119a8158
36 changed files with 549 additions and 12 deletions
20
app/views/conference/_sponsor.html.haml
Normal file
20
app/views/conference/_sponsor.html.haml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
%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.sponsorship_registrations.blank?
|
||||
%div.row.multi-columns-row
|
||||
%h4 #{l.title}
|
||||
- l.sponsorship_registrations.each_with_index do |r,index|
|
||||
%div.col-md-4
|
||||
- if !r.organization.photo.blank?
|
||||
= link_to image_tag(r.organization.photo(:large), class: 'img-responsive', alt: "#{r.organization.title} Logo", title: "#{r.organization.description}"), "http://#{r.organization.website_url}"
|
||||
- unless index == 0
|
||||
- if index%2 == 0
|
||||
%div.clearfix.visible-md.visible-lg
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
= content_for :splash_logo do
|
||||
= link_to @conference.title, "#", :class => 'navbar-brand'
|
||||
= render :partial => "home/conference_details", :locals => {:conference => @conference}
|
||||
= content_for :splash_header do
|
||||
%ul.nav.navbar-nav
|
||||
%li
|
||||
%a{ href: '#sponsors' } Sponsors
|
||||
= render 'sponsor'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue