Retrospring/app/views/layouts/base.haml

41 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-01 02:47:25 -07:00
!!! 5
2020-05-10 04:10:47 -07:00
%html{ lang: 'en' }
2014-08-01 02:47:25 -07:00
%head
2020-05-10 04:10:47 -07:00
%meta{ charset: 'utf-8' }
%meta{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no' }
%meta{ name: 'theme-color', content: theme_color }
2020-05-10 04:10:47 -07:00
%link{ rel: 'apple-touch-icon', href: '/apple-touch-icon-precomposed.png' }
%link{ rel: 'icon', href: '/images/favicon/favicon-16.png', sizes: '16x16' }
%link{ rel: 'icon', href: '/icon-152.png', sizes: '152x152' }
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
2015-05-10 10:48:47 -07:00
%title= yield(:title)
= stylesheet_link_tag 'application', media: 'all', data: { 'turbolinks-track': 'reload' }
= javascript_pack_tag 'application', data: { 'turbolinks-track': 'reload' }
= javascript_pack_tag 'legacy', data: { 'turbolinks-track': 'reload' }
= stylesheet_pack_tag 'legacy', data: { 'turbolinks-track': 'reload' }
- if user_signed_in? && current_user.mod?
= javascript_pack_tag 'legacy-moderation', data: { 'turbolinks-track': 'reload' }
2014-08-01 02:47:25 -07:00
= csrf_meta_tags
%body
- if user_signed_in?
= render 'navigation/main'
- else
= render 'navigation/guest'
= render 'shared/announcements'
2014-08-01 06:27:08 -07:00
= yield
2015-06-21 00:03:29 -07:00
= render 'shared/locales'
2014-08-01 06:27:08 -07:00
- if Rails.env.development?
2015-07-24 10:12:14 -07:00
#debug
%hr
.container
%p
Current branch:
%code= `git rev-parse --abbrev-ref HEAD`
(commit
= succeed ')' do
= `git rev-parse --short HEAD`.strip
%p.text-danger Debug params:
= debug params
= render_theme