mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:19:52 +01:00
Don't include theme CSS if there is no theme user present
This commit is contained in:
parent
1c18b966db
commit
92b0382022
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@
|
|||
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
|
||||
%title= yield(:title)
|
||||
= stylesheet_link_tag "application", data: { 'turbo-track': "reload" }, media: "all"
|
||||
%link{ rel: "stylesheet", href: user_path(username: active_theme_user.screen_name, format: "css"), data: { turbo_track: "reload" } }
|
||||
- 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
|
||||
= yield(:og)
|
||||
|
|
Loading…
Reference in a new issue