mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Dropped Js function for styling
This commit is contained in:
parent
8aab1d3655
commit
bebcc5042a
2 changed files with 4 additions and 13 deletions
|
|
@ -99,6 +99,9 @@ body {
|
|||
background-size: cover;
|
||||
-webkit-background-size:cover;
|
||||
}
|
||||
#venue-banner-disp.with-background{
|
||||
min-height: 500px;
|
||||
}
|
||||
|
||||
#venue-banner-disp li{
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
%a{ href: '#location' } Location
|
||||
|
||||
|
||||
%div#venue-banner-disp
|
||||
%div#venue-banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" if @conference.venue.photo), class:('with-background' if @conference.venue.photo) }
|
||||
%div.container.text-center
|
||||
.div.row.col-md-12
|
||||
- unless @conference.venue.name.blank?
|
||||
|
|
@ -24,15 +24,3 @@
|
|||
%li
|
||||
%b
|
||||
= link_to 'Visit Venue Website', @conference.venue.website, target: '_blank'
|
||||
|
||||
|
||||
- unless @conference.venue.photo.blank?
|
||||
:javascript
|
||||
$(document).ready(function(){
|
||||
var photo = "#{@conference.venue.photo}";
|
||||
if(photo)
|
||||
{
|
||||
$('#venue-banner-disp').css('min-height','500px');
|
||||
$('#venue-banner-disp').css('background-image', 'url('+photo+')');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue