Don't include theme CSS if there is no theme user present

This commit is contained in:
Karina Kwiatek 2023-11-06 16:12:30 +01:00
parent 1c18b966db
commit 92b0382022

View file

@ -19,6 +19,7 @@
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
%title= yield(:title)
= stylesheet_link_tag "application", data: { 'turbo-track': "reload" }, media: "all"
- if active_theme_user.present?
%link{ rel: "stylesheet", href: user_path(username: active_theme_user.screen_name, format: "css"), data: { turbo_track: "reload" } }
= javascript_include_tag 'application', data: { 'turbo-track': 'reload' }, defer: true
= csrf_meta_tags