Project

General

Profile

Feature #23980 » 0006-Add-a-temporary-svg-icon-to-the-plugin-template.patch

Takashi Kato, 2022-03-21 22:33

View differences:

lib/generators/redmine_plugin/redmine_plugin_generator.rb
40 40
    empty_directory "#{plugin_path}/assets/images"
41 41
    empty_directory "#{plugin_path}/assets/javascripts"
42 42
    empty_directory "#{plugin_path}/assets/stylesheets"
43
    empty_directory "#{plugin_path}/assets/icons"
43 44
    empty_directory "#{plugin_path}/config/locales"
45
    empty_directory "#{plugin_path}/config/icons"
44 46
    empty_directory "#{plugin_path}/test"
45 47
    empty_directory "#{plugin_path}/test/fixtures"
46 48
    empty_directory "#{plugin_path}/test/unit"
......
53 55
    template 'routes.rb',    "#{plugin_path}/config/routes.rb"
54 56
    template 'en_rails_i18n.yml',    "#{plugin_path}/config/locales/en.yml"
55 57
    template 'test_helper.rb.erb',    "#{plugin_path}/test/test_helper.rb"
58
    template 'svg-icon.yml.erb',    "#{plugin_path}/config/icons/common.yml"
59
    template 'cube-outline.svg',    "#{plugin_path}/assets/icons/cube-outline.svg"
56 60
  end
57 61
end
lib/generators/redmine_plugin/templates/common.yml.erb
1
icon-plugin-<%= plugin_name %>: cube-outline.svg
(26-26/54)