Skip to content

Commit

Permalink
Don't include theme CSS if there is no theme user present
Browse files Browse the repository at this point in the history
  • Loading branch information
raccube committed Nov 6, 2023
1 parent 72d3c87 commit a69f040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/layouts/base.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a69f040

Please sign in to comment.