Merge pull request #261 from gopesht/fix_align_bugs
Splash Page bug fixes
This commit is contained in:
commit
f7a12c977b
4 changed files with 41 additions and 36 deletions
|
|
@ -17,21 +17,23 @@
|
||||||
- if @conference.call_for_papers.end_date.to_time < Time.now
|
- if @conference.call_for_papers.end_date.to_time < Time.now
|
||||||
%p Today is the last day. Hurry Up!
|
%p Today is the last day. Hurry Up!
|
||||||
- else
|
- else
|
||||||
%div.row.col-md-6.col-md-offset-4
|
.row
|
||||||
%div.col-md-2
|
.col-md-8.col-md-offset-3
|
||||||
%h2#days
|
%div.col-md-2
|
||||||
%p Days
|
%h2#days
|
||||||
%div.col-md-2
|
%p Days
|
||||||
%h2#hours
|
%div.col-md-2
|
||||||
%p Hours
|
%h2#hours
|
||||||
%div.col-md-2
|
%p Hours
|
||||||
%h2#minutes
|
%div.col-md-2
|
||||||
%p Minutes
|
%h2#minutes
|
||||||
%div.col-md-2
|
%p Minutes
|
||||||
%h2#seconds
|
%div.col-md-2
|
||||||
%p Seconds
|
%h2#seconds
|
||||||
%p
|
%p Seconds
|
||||||
= link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank'
|
.row
|
||||||
|
%p
|
||||||
|
= link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank'
|
||||||
-else
|
-else
|
||||||
%h3 Deadline has ended
|
%h3 Deadline has ended
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
%div.row.col-md-12.text-center
|
%div.container.text-center
|
||||||
%h2 Lodgings
|
%h2 Lodgings
|
||||||
-unless @conference.lodging_description.blank?
|
-unless @conference.lodging_description.blank?
|
||||||
%p.lead
|
%p.lead
|
||||||
= @conference.lodging_description
|
= @conference.lodging_description
|
||||||
|
|
||||||
%div.row
|
%div.row.text-center
|
||||||
- @conference.venue.lodgings.each do |r|
|
- @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") }
|
||||||
-unless r.photo.blank?
|
.div.thumbnail
|
||||||
= image_tag r.photo(:large), class: 'img-responsive'
|
-unless r.photo.blank?
|
||||||
-unless r.name.blank?
|
= image_tag r.photo(:large), class: 'img-responsive'
|
||||||
%h4.text-center #{ r.name }
|
-unless r.name.blank?
|
||||||
-unless r.description.blank?
|
%h4.text-center #{ r.name }
|
||||||
%p.text-left #{ r.description }
|
-unless r.description.blank?
|
||||||
- unless r.website_link.blank?
|
%p.text-left #{ r.description }
|
||||||
.text-center
|
- unless r.website_link.blank?
|
||||||
= link_to 'Go to Website', r.website_link
|
.text-center
|
||||||
|
= link_to 'Go to Website', r.website_link
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,12 @@
|
||||||
- if !@conference.sponsorship_levels.blank?
|
- if !@conference.sponsorship_levels.blank?
|
||||||
- @conference.sponsorship_levels.each do |l|
|
- @conference.sponsorship_levels.each do |l|
|
||||||
- if !l.sponsors.blank?
|
- if !l.sponsors.blank?
|
||||||
%div.row
|
%div.row.text-center
|
||||||
%h4 #{l.title}
|
%h4 #{l.title}
|
||||||
- l.sponsors.each_with_index do |r,index|
|
- 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?
|
- 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
|
- unless index == 0
|
||||||
- if index%2 == 0
|
- if index%2 == 0
|
||||||
%div.clearfix.visible-md.visible-lg
|
%div.clearfix.visible-md.visible-lg
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,18 @@
|
||||||
%section{ id: 'splash-banner' }
|
%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.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
|
%div.container.text-center.banner-text
|
||||||
.row.col-md-12
|
.row
|
||||||
%h1
|
%h1
|
||||||
= @conference.title
|
= @conference.title
|
||||||
- if @conference.start_date && @conference.end_date
|
- if @conference.start_date && @conference.end_date
|
||||||
%h3
|
.row
|
||||||
= conference_date_string(@conference)
|
%h3
|
||||||
|
= conference_date_string(@conference)
|
||||||
|
|
||||||
- unless @conference.description.blank?
|
- unless @conference.description.blank?
|
||||||
.row-fluid.col-md-12.lead
|
.row-fluid
|
||||||
%p= @conference.description
|
.col-md-12.lead
|
||||||
|
%p= @conference.description
|
||||||
|
|
||||||
- if @conference.include_program_in_splash?
|
- if @conference.include_program_in_splash?
|
||||||
%section{ id: 'program' }
|
%section{ id: 'program' }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue