rails_generators/theme/theme_generator.rb in web-app-theme-0.4.0 vs rails_generators/theme/theme_generator.rb in web-app-theme-0.5.0
- old
+ new
@@ -9,12 +9,16 @@
super
@name = @args.first || (options[:layout_type].to_s == "sign" ? "sign" : "application")
end
def manifest
- record do |m|
+ record do |m|
m.directory("app/views/layouts")
- m.directory("public/stylesheets/themes/#{options[:theme]}/")
+ m.directory("public/images/web-app-theme")
+ %w(cross key tick application_edit).each do |icon|
+ m.file("../../../images/icons/#{icon}.png", "public/images/web-app-theme/#{icon}.png")
+ end
+ m.directory("public/stylesheets/themes/#{options[:theme]}/")
m.template("view_layout_#{options[:layout_type]}.html.erb", File.join("app/views/layouts", "#{@name}.html.erb")) unless options[:no_layout]
m.template("../../../stylesheets/base.css", File.join("public/stylesheets", "web_app_theme.css"))
m.template("web_app_theme_override.css", File.join("public/stylesheets", "web_app_theme_override.css"))
m.template("../../../stylesheets/themes/#{options[:theme]}/style.css", File.join("public/stylesheets/themes/#{options[:theme]}", "style.css"))
end