mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:16:22 +00:00
Merge branch 'issue-13578' into 'rails'
Issue 13578 See merge request sutty/sutty!252
This commit is contained in:
commit
fa93610a03
3 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ class EnvController < ActionController::Base
|
||||||
skip_before_action :verify_authenticity_token
|
skip_before_action :verify_authenticity_token
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@site = Site.find_by_name('panel')
|
@site = Site.find_by_name('panel') || Site.first
|
||||||
|
|
||||||
stale? @site if @site
|
stale? @site if @site
|
||||||
end
|
end
|
||||||
|
|
4
app/views/env/index.js.haml
vendored
4
app/views/env/index.js.haml
vendored
|
@ -2,7 +2,7 @@
|
||||||
= cache @site do
|
= cache @site do
|
||||||
:plain
|
:plain
|
||||||
window.env = {
|
window.env = {
|
||||||
AIRBRAKE_SITE_ID: #{@site.id},
|
AIRBRAKE_PROJECT_ID: #{@site.id},
|
||||||
AIRBRAKE_API_KEY: "#{@site.airbrake_api_key}",
|
AIRBRAKE_PROJECT_KEY: "#{@site.airbrake_api_key}",
|
||||||
PANEL_URL: "#{ENV['PANEL_URL']}"
|
PANEL_URL: "#{ENV['PANEL_URL']}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
||||||
= stylesheet_link_tag 'dark', rel: 'alternate stylesheet', media: 'all', 'data-turbolinks-track': 'reload', title: t('dark')
|
= stylesheet_link_tag 'dark', rel: 'alternate stylesheet', media: 'all', 'data-turbolinks-track': 'reload', title: t('dark')
|
||||||
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload', defer: true
|
||||||
= stylesheet_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
= stylesheet_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
||||||
= favicon_link_tag 'sutty_cuadrada.png', rel: 'apple-touch-icon', type: 'image/png'
|
= favicon_link_tag 'sutty_cuadrada.png', rel: 'apple-touch-icon', type: 'image/png'
|
||||||
= render 'layouts/link_rel_alternate'
|
= render 'layouts/link_rel_alternate'
|
||||||
|
|
Loading…
Reference in a new issue