Evil hack on production for frontend translations

This commit is contained in:
Georg Gadinger 2017-04-01 01:13:16 +02:00
parent 5ef7f043ff
commit f8e494094f
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@
%link{rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32'} %link{rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32'}
%title= yield(:title) %title= yield(:title)
= javascript_include_tag 'i18n', 'data-turbolinks-track' => true = 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 = 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?) - 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"} %link{rel: 'stylesheet', href: current_user.theme.css.url, media: :all, 'data-turbolinks-track' => "false"}