diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b4309482ade..371df3a61fa 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -115,6 +115,12 @@ module ApplicationHelper [asset_path("#{target}.css"), customization_disabled? ? nil : SiteCustomization.custom_stylesheet_path(session[:preview_style], target)].compact end + def stylesheet_links(target=:desktop) + stylesheet_filenames(target).map do |f| + "" + end.join("\n") + end + def customization_disabled? controller.class.name.split("::").first == "Admin" || session[:disable_customization] end diff --git a/app/views/common/_discourse_stylesheet.html.erb b/app/views/common/_discourse_stylesheet.html.erb index afdab8627ef..e5507f27ef3 100644 --- a/app/views/common/_discourse_stylesheet.html.erb +++ b/app/views/common/_discourse_stylesheet.html.erb @@ -2,32 +2,16 @@ diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a8a0d03543f..8a5ec44bb55 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -31,14 +31,19 @@
-