mostrar la imagen de fondo cuando no hay ninguna

This commit is contained in:
f 2018-12-11 13:17:15 -03:00
parent 7de042caa3
commit 23930abab7
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -6,7 +6,8 @@
= csrf_meta_tags
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? "background-image: url(#{@site.try(:cover)})": ''}
- style = "background-image: url(#{@site.try(:cover) || image_url('background.jpg')})"
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? style : ''}
.container-fluid
= yield
%footer.footer