From 83cebe4d9b609a81f7a9702a960730c238b6619c Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 5 May 2020 02:03:49 +0200 Subject: [PATCH] Fix theme preview not applying This happens because the generated "preview style tag" is added before the main style one. This change makes sure the theme is rendered right after the application style --- app/views/layouts/base.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/base.haml b/app/views/layouts/base.haml index 2c6d0181..08cffd36 100644 --- a/app/views/layouts/base.haml +++ b/app/views/layouts/base.haml @@ -12,12 +12,12 @@ %title= yield(:title) = javascript_include_tag 'i18n', 'data-turbolinks-track' => true = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true + = render_theme = javascript_include_tag 'application', 'data-turbolinks-track' => true - if user_signed_in? - if current_user.mod? = javascript_include_tag 'moderation', 'data-turbolinks-track' => true = csrf_meta_tags - = render_theme %body#version1 - if user_signed_in? = render 'navigation/main'