sutty/app/views/layouts/application.html.haml

26 lines
753 B
Plaintext
Raw Normal View History

2018-01-29 18:09:30 +00:00
!!!
%html{ lang: I18n.locale, dir: t('dir') }
2018-01-29 18:09:30 +00:00
%head
2019-07-26 00:08:37 +00:00
%meta{ content: 'text/html; charset=UTF-8',
'http-equiv': 'Content-Type' }/
2018-01-29 18:09:30 +00:00
%title Sutty
2019-07-26 00:08:37 +00:00
2018-01-29 18:09:30 +00:00
= csrf_meta_tags
2019-07-26 00:08:37 +00:00
= stylesheet_link_tag 'application', media: 'all',
'data-turbolinks-track': 'reload'
= javascript_pack_tag 'application',
'data-turbolinks-track': 'reload'
2019-07-26 00:08:37 +00:00
= javascript_include_tag 'application',
'data-turbolinks-track': 'reload'
-# TODO: Reimplementar get_url_from_site
2019-07-26 00:08:37 +00:00
- style = "background-image: url(#{@site.try(:cover)})"
-# haml-lint:disable InlineStyles
%body{ class: @has_cover ? 'background-cover' : '',
style: @has_cover ? style : '' }
.container-fluid#sutty
2018-01-29 18:09:30 +00:00
= yield
2019-07-26 00:08:37 +00:00
-# haml-lint:enable InlineStyles