From f8e494094fcee4630dded90b537f1bd7515d009e Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sat, 1 Apr 2017 01:13:16 +0200 Subject: [PATCH] Evil hack on production for frontend translations --- app/views/layouts/application.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 12f5e08b..42313b35 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -11,6 +11,8 @@ %link{rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32'} %title= yield(:title) = javascript_include_tag 'i18n', 'data-turbolinks-track' => true + - # Evil hack on production: manually require /javascripts/translations.js; this used to work before though :( + %script{src: '/javascripts/translations.js', 'data-turbolinks-track' => false} = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true - if user_signed_in? and not current_user.theme.nil? and (@user.nil? || @user.theme.nil?) %link{rel: 'stylesheet', href: current_user.theme.css.url, media: :all, 'data-turbolinks-track' => "false"}