2014-08-01 02:47:25 -07:00
|
|
|
!!! 5
|
2021-12-23 12:04:31 -08:00
|
|
|
%html{ lang: I18n.locale, prefix: 'og: https://ogp.me/ns#' }
|
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' }
|
2021-08-05 15:36:20 -07:00
|
|
|
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover' }
|
2021-08-11 15:34:30 -07:00
|
|
|
- if user_signed_in?
|
|
|
|
%meta{ name: 'theme-color', content: theme_color, media: '(min-width: 993px)' }
|
|
|
|
%meta{ name: 'theme-color', content: mobile_theme_color, media: '(max-width: 992px)' }
|
|
|
|
- else
|
|
|
|
%meta{ name: 'theme-color', content: theme_color }
|
2021-12-23 12:04:31 -08:00
|
|
|
%link{ rel: 'manifest', href: '/manifest.json', crossorigin: 'use-credentials' }
|
2022-07-17 02:11:00 -07:00
|
|
|
%link{ rel: 'apple-touch-icon', href: '/icons/maskable_icon_x192.png' }
|
2021-12-23 12:04:31 -08:00
|
|
|
%link{ rel: 'mask-icon', href: '/icons/icon.svg', color: theme_color }
|
2020-05-10 04:10:47 -07:00
|
|
|
%link{ rel: 'icon', href: '/images/favicon/favicon-16.png', sizes: '16x16' }
|
2022-07-17 02:11:00 -07:00
|
|
|
%link{ rel: 'icon', href: '/icons/maskable_icon_x192.png', sizes: '192x192' }
|
2020-05-10 04:10:47 -07:00
|
|
|
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
|
2015-05-10 10:48:47 -07:00
|
|
|
%title= yield(:title)
|
2022-09-04 05:35:09 -07:00
|
|
|
= stylesheet_pack_tag 'application', data: { 'turbo-track': 'reload' }
|
|
|
|
= javascript_pack_tag 'application', data: { 'turbo-track': 'reload' }
|
|
|
|
= javascript_pack_tag 'legacy', data: { 'turbo-track': 'reload' }
|
2014-08-01 02:47:25 -07:00
|
|
|
= csrf_meta_tags
|
2021-08-06 04:24:04 -07:00
|
|
|
= yield(:og)
|
|
|
|
= yield(:meta)
|
2021-08-11 16:18:10 -07:00
|
|
|
%body{ class: user_signed_in? ? '' : 'not-logged-in' }
|
2020-04-26 05:29:23 -07:00
|
|
|
- if user_signed_in?
|
|
|
|
= render 'navigation/main'
|
|
|
|
- else
|
|
|
|
= render 'navigation/guest'
|
2020-04-19 13:38:21 -07:00
|
|
|
= render 'shared/announcements'
|
2014-08-01 06:27:08 -07:00
|
|
|
= yield
|
|
|
|
- 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:
|
2020-05-08 17:07:58 -07:00
|
|
|
= debug params
|
|
|
|
= render_theme
|