2014-08-01 11:47:25 +02:00
|
|
|
!!! 5
|
2021-12-23 21:04:31 +01:00
|
|
|
%html{ lang: I18n.locale, prefix: 'og: https://ogp.me/ns#' }
|
2014-08-01 11:47:25 +02:00
|
|
|
%head
|
2020-05-10 13:10:47 +02:00
|
|
|
%meta{ charset: 'utf-8' }
|
|
|
|
%meta{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }
|
2021-08-06 00:36:20 +02:00
|
|
|
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover' }
|
2021-08-12 00:34:30 +02: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 }
|
2022-11-16 22:33:04 +01:00
|
|
|
- if @user&.privacy_noindex? || @answer&.user&.privacy_noindex? || @question&.user&.privacy_noindex?
|
|
|
|
%meta{ name: 'robots', content: 'noindex' }
|
2021-12-23 21:04:31 +01:00
|
|
|
%link{ rel: 'manifest', href: '/manifest.json', crossorigin: 'use-credentials' }
|
2022-07-17 11:11:00 +02:00
|
|
|
%link{ rel: 'apple-touch-icon', href: '/icons/maskable_icon_x192.png' }
|
2021-12-23 21:04:31 +01:00
|
|
|
%link{ rel: 'mask-icon', href: '/icons/icon.svg', color: theme_color }
|
2020-05-10 13:10:47 +02:00
|
|
|
%link{ rel: 'icon', href: '/images/favicon/favicon-16.png', sizes: '16x16' }
|
2022-07-17 11:11:00 +02:00
|
|
|
%link{ rel: 'icon', href: '/icons/maskable_icon_x192.png', sizes: '192x192' }
|
2020-05-10 13:10:47 +02:00
|
|
|
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
|
2015-05-10 19:48:47 +02:00
|
|
|
%title= yield(:title)
|
2023-03-05 15:58:18 +01:00
|
|
|
= stylesheet_link_tag "application", data: { 'turbo-track': "reload" }, media: "all"
|
2023-01-06 08:21:22 +01:00
|
|
|
= javascript_include_tag 'application', data: { 'turbo-track': 'reload' }, defer: true
|
2014-08-01 11:47:25 +02:00
|
|
|
= csrf_meta_tags
|
2021-08-06 13:24:04 +02:00
|
|
|
= yield(:og)
|
|
|
|
= yield(:meta)
|
2023-01-17 05:45:12 +01:00
|
|
|
%body{ class: user_signed_in? ? nil : 'not-logged-in', data: { controller: "capabilities" } }
|
2020-04-26 14:29:23 +02:00
|
|
|
- if user_signed_in?
|
|
|
|
= render 'navigation/main'
|
|
|
|
- else
|
|
|
|
= render 'navigation/guest'
|
2020-04-19 22:38:21 +02:00
|
|
|
= render 'shared/announcements'
|
2014-08-01 15:27:08 +02:00
|
|
|
= yield
|
2023-01-10 15:48:56 +01:00
|
|
|
= render "shared/formatting"
|
2023-03-05 18:45:38 +01:00
|
|
|
= render "shared/hotkeys"
|
2023-10-23 00:45:40 +02:00
|
|
|
= turbo_frame_tag "modal"
|
2023-02-11 06:43:11 +01:00
|
|
|
.d-none#toasts
|
2014-08-01 15:27:08 +02:00
|
|
|
- if Rails.env.development?
|
2015-07-24 19:12:14 +02: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-09 02:07:58 +02:00
|
|
|
= debug params
|
|
|
|
= render_theme
|