Fix show foreign themes bug
This commit is contained in:
parent
675ba646ea
commit
6642408b61
|
@ -12,7 +12,7 @@
|
|||
%title= yield(:title)
|
||||
= javascript_include_tag 'i18n', 'data-turbolinks-track' => true
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||
- if @user.present? and @user.theme.present? and (user_signed_in? and current_user.show_foreign_themes?)
|
||||
- if @user.present? and @user.theme.present? and (if user_signed_in? then current_user.show_foreign_themes? else true end)
|
||||
%link{rel: 'stylesheet', href: @user.theme.css.url, media: :all, 'data-turbolinks-track' => true}
|
||||
- elsif user_signed_in? and current_user.theme.present?
|
||||
%link{rel: 'stylesheet', href: current_user.theme.css.url, media: :all, 'data-turbolinks-track' => true}
|
||||
|
|
Loading…
Reference in New Issue