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
This commit is contained in:
Andreas Nedbal 2020-05-05 02:03:49 +02:00
parent 9d5d205ded
commit 83cebe4d9b

View file

@ -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'