don't include unnecessary theme files on user profiles
This commit is contained in:
parent
8d4d2ffce1
commit
f7d06135ef
|
@ -12,7 +12,7 @@
|
||||||
%title= yield(:title)
|
%title= yield(:title)
|
||||||
= javascript_include_tag 'i18n', 'data-turbolinks-track' => true
|
= javascript_include_tag 'i18n', 'data-turbolinks-track' => true
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||||
- if user_signed_in? and not current_user.theme.nil?
|
- if user_signed_in? and not current_user.theme.nil? and (@user.nil? || @user.theme.nil?)
|
||||||
%link{rel: 'stylesheet', href: current_user.theme.css.url, media: :all, 'data-turbolinks-track' => "false"}
|
%link{rel: 'stylesheet', href: current_user.theme.css.url, media: :all, 'data-turbolinks-track' => "false"}
|
||||||
%meta{name: 'theme-color', content: current_user.theme.theme_color}
|
%meta{name: 'theme-color', content: current_user.theme.theme_color}
|
||||||
- if (not @user.nil?) and (not @user.theme.nil?) and (if user_signed_in? then current_user.show_foreign_themes? else true end)
|
- if (not @user.nil?) and (not @user.theme.nil?) and (if user_signed_in? then current_user.show_foreign_themes? else true end)
|
||||||
|
|
Loading…
Reference in New Issue