Merge pull request #261 from gopesht/fix_align_bugs

Splash Page bug fixes
This commit is contained in:
Gopesh Tulsyan 2014-06-26 20:37:44 +05:30
commit f7a12c977b
4 changed files with 41 additions and 36 deletions

View file

@ -17,7 +17,8 @@
- if @conference.call_for_papers.end_date.to_time < Time.now
%p Today is the last day. Hurry Up!
- else
%div.row.col-md-6.col-md-offset-4
.row
.col-md-8.col-md-offset-3
%div.col-md-2
%h2#days
%p Days
@ -30,6 +31,7 @@
%div.col-md-2
%h2#seconds
%p Seconds
.row
%p
= link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank'
-else

View file

@ -1,12 +1,13 @@
%div.row.col-md-12.text-center
%div.container.text-center
%h2 Lodgings
-unless @conference.lodging_description.blank?
%p.lead
= @conference.lodging_description
%div.row
%div.row.text-center
- @conference.venue.lodgings.each do |r|
%div.col-md-3.thumbnail
%div{ class: (@conference.venue.lodgings.count.to_i <= 2 ? "col-md-#{12/@conference.venue.lodgings.count.to_i}" : "col-md-4") }
.div.thumbnail
-unless r.photo.blank?
= image_tag r.photo(:large), class: 'img-responsive'
-unless r.name.blank?

View file

@ -12,12 +12,12 @@
- if !@conference.sponsorship_levels.blank?
- @conference.sponsorship_levels.each do |l|
- if !l.sponsors.blank?
%div.row
%div.row.text-center
%h4 #{l.title}
- l.sponsors.each_with_index do |r,index|
%div.col-md-4
%div.text-center{ class: (l.sponsors.count.to_i <= 2 ? "col-md-#{12/l.sponsors.count.to_i}" : "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}"
= link_to image_tag(r.logo(:large), alt: "#{r.name} Logo", title: "#{r.description}"), "http://#{r.website_url}"
- unless index == 0
- if index%2 == 0
%div.clearfix.visible-md.visible-lg

View file

@ -5,15 +5,17 @@
%section{ id: 'splash-banner' }
%div.banner-disp{ style: ("background-image: url(#{@conference.banner_photo})" unless @conference.banner_photo.blank?), class:('with-background' unless @conference.banner_photo.blank?) }
%div.container.text-center.banner-text
.row.col-md-12
.row
%h1
= @conference.title
- if @conference.start_date && @conference.end_date
.row
%h3
= conference_date_string(@conference)
- unless @conference.description.blank?
.row-fluid.col-md-12.lead
.row-fluid
.col-md-12.lead
%p= @conference.description
- if @conference.include_program_in_splash?