5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 12:26:21 +00:00

Merge branch 'issue-13578' into 'rails'

Issue 13578

See merge request sutty/sutty!252
This commit is contained in:
fauno 2024-05-02 19:11:17 +00:00
commit fa93610a03
3 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ class EnvController < ActionController::Base
skip_before_action :verify_authenticity_token
def index
@site = Site.find_by_name('panel')
@site = Site.find_by_name('panel') || Site.first
stale? @site if @site
end

View file

@ -2,7 +2,7 @@
= cache @site do
:plain
window.env = {
AIRBRAKE_SITE_ID: #{@site.id},
AIRBRAKE_API_KEY: "#{@site.airbrake_api_key}",
AIRBRAKE_PROJECT_ID: #{@site.id},
AIRBRAKE_PROJECT_KEY: "#{@site.airbrake_api_key}",
PANEL_URL: "#{ENV['PANEL_URL']}"
}

View file

@ -15,7 +15,7 @@
= csrf_meta_tags
= 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')
= 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'
= favicon_link_tag 'sutty_cuadrada.png', rel: 'apple-touch-icon', type: 'image/png'
= render 'layouts/link_rel_alternate'