changed if to unless in rendering css conditionally

This commit is contained in:
Gopesh Tulsyan 2014-06-17 00:15:39 +05:30
parent bebcc5042a
commit 628f9438d9

View file

@ -3,7 +3,7 @@
%a{ href: '#location' } Location
%div#venue-banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" if @conference.venue.photo), class:('with-background' if @conference.venue.photo) }
%div#venue-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?