osem-fcy/app/views/conference/_location.html.haml
Gopesh Tulsyan 3eb0ecf994 Enhance text on location banner
Fix failing test and css fixes
2014-06-26 23:01:54 +05:30

26 lines
1 KiB
Text

= content_for :splash_nav do
%li
%a.smoothscroll{ href: '#location' } Location
%div.banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" unless @conference.venue.photo.blank?), class:('with-background' unless @conference.venue.photo.blank?) }
%div.container.text-center
.div.row.col-md-12
- unless @conference.venue.name.blank?
%h1
%strong #{ @conference.venue.name }
- unless @conference.venue.address.blank?
%h2
%strong #{ @conference.venue.address }
- unless @conference.venue.description.blank?
%p
= @conference.venue.description
%ul.location-links
- unless @conference.venue.address.blank?
%li
%b
= link_to 'View in Google Maps', "http://maps.google.com/maps?q=#{@conference.venue.address}", target: '_blank'
- unless @conference.venue.website.blank?
%li
%b
= link_to 'Visit Venue Website', @conference.venue.website, target: '_blank'