5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 06:21:41 +00:00
panel/app/views/layouts/application.html.haml

20 lines
872 B
Text
Raw Normal View History

2018-01-29 18:09:30 +00:00
!!!
%html
%head
%meta{content: "text/html; charset=UTF-8", 'http-equiv': "Content-Type"}/
%title Sutty
= csrf_meta_tags
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
2018-02-03 14:02:21 +00:00
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
2019-01-09 20:37:34 +00:00
- if @site.try(:config).try(:dig, 'css')
%link{rel: 'stylesheet', type: 'text/css', href: @site.get_url_from_site(@site.config.dig('css'))}
- style = "background-image: url(#{@site.try(:cover) || image_url('background.jpg')})"
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? style : ''}
2018-01-29 18:09:30 +00:00
.container-fluid
= yield
%footer.footer
%p{style: @has_cover ? 'color: white' : ''}
%a{href: 'https://0xacab.org/itacate-kefir/sutty'} Sutty
2018-01-29 22:19:47 +00:00
= t('footer.powered_by')
2018-01-29 18:09:30 +00:00
%a{href: 'https://kefir.red'} Kéfir