diff --git a/app/views/layouts/resque_web/application.html.erb b/app/views/layouts/resque_web/application.html.erb index d7557cc..10c1b78 100644 --- a/app/views/layouts/resque_web/application.html.erb +++ b/app/views/layouts/resque_web/application.html.erb @@ -6,8 +6,22 @@ Resque. - <%= stylesheet_link_tag "resque_web/application", :media => "all" %> + <%= stylesheet_link_tag "resque_web/application", :media => "all" %> + <%= + ResqueWeb::Plugins.plugins.collect do |p| + if Rails.application.assets.find_asset("#{p.name.underscore.downcase}/application.css") + stylesheet_link_tag "#{p.name.underscore.downcase}/application" + end + end.join("\n").html_safe + %> <%= javascript_include_tag "resque_web/application" %> + <%= + ResqueWeb::Plugins.plugins.collect do |p| + if Rails.application.assets.find_asset("#{p.name.underscore.downcase}/application.js") + javascript_include_tag "#{p.name.underscore.downcase}/application" + end + end.join("\n").html_safe + %> <%= csrf_meta_tags %>