redmine_extensions 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/redmine_extensions/redmine_extensions.js +2 -2
- data/app/models/easy_setting.rb +1 -1
- data/app/views/easy_queries/_entities.html.erb +60 -0
- data/app/views/easy_queries/_index.html.erb +10 -0
- data/app/views/easy_queries/_settings.html.erb +44 -0
- data/lib/generators/redmine_extensions/entity/USAGE +11 -0
- data/lib/generators/redmine_extensions/entity/entity_generator.rb +257 -0
- data/lib/generators/redmine_extensions/entity/templates/_form.html.erb.erb +36 -0
- data/lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb +9 -0
- data/lib/generators/redmine_extensions/entity/templates/_view_custom_fields_form_custom_field.html.erb.erb +1 -0
- data/lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb +8 -0
- data/lib/generators/redmine_extensions/entity/templates/controller.rb.erb +158 -0
- data/lib/generators/redmine_extensions/entity/templates/custom_field.rb.erb +7 -0
- data/lib/generators/redmine_extensions/entity/templates/edit.html.erb.erb +17 -0
- data/lib/generators/redmine_extensions/entity/templates/en.yml.erb +10 -0
- data/lib/generators/redmine_extensions/entity/templates/helper.rb.erb +24 -0
- data/lib/generators/redmine_extensions/entity/templates/hooks.rb.erb +7 -0
- data/lib/generators/redmine_extensions/entity/templates/index.api.rsb.erb +5 -0
- data/lib/generators/redmine_extensions/entity/templates/index.html.erb.erb +5 -0
- data/lib/generators/redmine_extensions/entity/templates/mail_added.html.erb.erb +1 -0
- data/lib/generators/redmine_extensions/entity/templates/mail_added.text.erb.erb +2 -0
- data/lib/generators/redmine_extensions/entity/templates/mail_updated.html.erb.erb +1 -0
- data/lib/generators/redmine_extensions/entity/templates/mail_updated.text.erb.erb +2 -0
- data/lib/generators/redmine_extensions/entity/templates/mailer.rb.erb +41 -0
- data/lib/generators/redmine_extensions/entity/templates/migration.rb.erb +9 -0
- data/lib/generators/redmine_extensions/entity/templates/model.rb.erb +137 -0
- data/lib/generators/redmine_extensions/entity/templates/new.html.erb.erb +17 -0
- data/lib/generators/redmine_extensions/entity/templates/query.rb.erb +41 -0
- data/lib/generators/redmine_extensions/entity/templates/routes.rb.erb +12 -0
- data/lib/generators/redmine_extensions/entity/templates/show.api.rsb.erb +1 -0
- data/lib/generators/redmine_extensions/entity/templates/show.html.erb.erb +38 -0
- data/lib/generators/redmine_extensions/plugin/USAGE +11 -0
- data/lib/generators/redmine_extensions/plugin/plugin_generator.rb +57 -0
- data/lib/generators/redmine_extensions/plugin/templates/Gemfile +1 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/after_init.rb.erb +0 -0
- data/lib/generators/redmine_extensions/plugin/templates/en.yml +2 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/hooks.rb.erb +0 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/init.rb.erb +11 -11
- data/lib/generators/redmine_extensions/plugin/templates/internals.rb.erb +4 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issue_patch.example.erb +0 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issues_controller_patch.example.erb +0 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issues_helper_patch.example.erb +0 -0
- data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/routes.rb.erb +0 -0
- data/lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb +27 -0
- data/lib/redmine_extensions/easy_query_adapter.rb +142 -0
- data/lib/redmine_extensions/engine.rb +4 -1
- data/lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb +55 -0
- data/lib/redmine_extensions/redmine_patches/patches.rb +4 -0
- data/lib/redmine_extensions/version.rb +1 -1
- metadata +49 -355
- data/app/assets/javascripts/redmine_extensions/ckeditor/CHANGES.md +0 -720
- data/app/assets/javascripts/redmine_extensions/ckeditor/LICENSE.md +0 -1264
- data/app/assets/javascripts/redmine_extensions/ckeditor/README.md +0 -39
- data/app/assets/javascripts/redmine_extensions/ckeditor/adapters/jquery.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/build-config.js +0 -139
- data/app/assets/javascripts/redmine_extensions/ckeditor/ckeditor.js +0 -1097
- data/app/assets/javascripts/redmine_extensions/ckeditor/config.js +0 -58
- data/app/assets/javascripts/redmine_extensions/ckeditor/contents.css +0 -134
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/cs.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/da.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/de.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/en.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/es.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/fi.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/fr.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/he.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/hu.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/it.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ja.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ko.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/nl.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/no.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pl.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pt-br.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pt.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ru.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sk.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sl.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sv.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/zh-cn.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/lang/zh.js +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/about.js +0 -7
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/LICENSE.md +0 -1243
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/README.md +0 -21
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/dialogs/base64image.js +0 -16
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/dialogs/codesnippet.js +0 -6
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/CHANGES.md +0 -827
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/LICENSE +0 -24
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/README.md +0 -167
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/README.ru.md +0 -171
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js +0 -1
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/arta.css +0 -160
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/ascetic.css +0 -50
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-dune.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-dune.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-forest.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-forest.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-heath.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-heath.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-lakeside.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-lakeside.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-seaside.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-seaside.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/brown_paper.css +0 -105
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/brown_papersq.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/dark.css +0 -105
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css +0 -153
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/docco.css +0 -132
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/far.css +0 -113
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/foundation.css +0 -133
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/github.css +0 -125
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/googlecode.css +0 -147
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/idea.css +0 -122
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/ir_black.css +0 -105
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/magula.css +0 -122
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/mono-blue.css +0 -62
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai.css +0 -127
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai_sublime.css +0 -149
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/obsidian.css +0 -154
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/paraiso.dark.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/paraiso.light.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/pojoaque.css +0 -106
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/pojoaque.jpg +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/railscasts.css +0 -182
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/rainbow.css +0 -112
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/school_book.css +0 -113
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/school_book.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/solarized_dark.css +0 -107
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/solarized_light.css +0 -107
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/sunburst.css +0 -160
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-blue.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-bright.css +0 -92
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-eighties.css +0 -92
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night.css +0 -93
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow.css +0 -90
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/vs.css +0 -89
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/xcode.css +0 -158
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/zenburn.css +0 -116
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/div/dialogs/div.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/find/dialogs/find.js +0 -24
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/flash/dialogs/flash.js +0 -24
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/button.js +0 -8
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/checkbox.js +0 -8
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/form.js +0 -8
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/radio.js +0 -8
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/select.js +0 -20
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/textfield.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/image/dialogs/image.js +0 -43
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/dialogs/anchor.js +0 -7
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/dialogs/link.js +0 -26
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/pastefromword/filter/default.js +0 -31
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/preview/preview.html +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/LICENSE.md +0 -28
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/README.md +0 -25
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/dialogs/options.js +0 -17
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/dialogs/smiley.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/envelope.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/heart.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/kiss.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -12
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/table/dialogs/table.js +0 -21
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -17
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/default.js +0 -6
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/widget/images/handle.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/LICENSE.md +0 -28
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/README.md +0 -25
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc.js +0 -74
- data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie7.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie8.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_iequirks.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_gecko.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie7.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie8.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_iequirks.css +0 -5
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/readme.md +0 -51
- data/app/assets/javascripts/redmine_extensions/ckeditor/styles.js +0 -111
- data/app/views/layouts/redmine_extensions/application.html.erb +0 -14
- data/config/database.yml.mysql +0 -51
- data/lib/generators/easy_redmine_plugin/USAGE +0 -8
- data/lib/generators/easy_redmine_plugin/easy_redmine_plugin_generator.rb +0 -49
- data/lib/generators/easy_redmine_plugin/templates/Gemfile +0 -1
- data/lib/generators/easy_redmine_plugin/templates/cs.yml +0 -5
- data/lib/generators/easy_redmine_plugin/templates/de.yml +0 -5
- data/lib/generators/easy_redmine_plugin/templates/en.yml +0 -5
- data/lib/generators/easy_redmine_plugin/templates/internals.rb.erb +0 -3
@@ -0,0 +1,17 @@
|
|
1
|
+
<%%= title l(:heading_<%= model_name_underscored %>_edit) %>
|
2
|
+
|
3
|
+
<%%= form_for([@project, @<%= model_name_underscored %>], html: {multipart: <%= acts_as_attachable? %>, id: '<%= model_name_underscored %>_form', class: 'tabular'}) do |f| %>
|
4
|
+
<%%= error_messages_for @<%= model_name_underscored %> %>
|
5
|
+
|
6
|
+
<div class="box">
|
7
|
+
<%%= render partial: 'form', locals: {<%= model_name_underscored %>: @<%= model_name_underscored %>} %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
<%%= submit_tag l(:button_update), title: l(:button_update) %>
|
12
|
+
</p>
|
13
|
+
<%% end %>
|
14
|
+
<%% ### PAGE CUSTOMS ########################################################## %>
|
15
|
+
<%% content_for :sidebar do %>
|
16
|
+
<%%= render :partial => '<%= model_name_pluralize_underscored %>/sidebar' %>
|
17
|
+
<%% end %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
en:
|
2
|
+
heading_<%= model_name_underscored %>_new: New <%= model_name_underscored.titleize %>
|
3
|
+
heading_<%= model_name_underscored %>_edit: Edit <%= model_name_underscored.titleize %>
|
4
|
+
button_<%= model_name_underscored %>_new: New <%= model_name_underscored.titleize %>
|
5
|
+
label_<%= model_name_pluralize_underscored %>: <%= model_name_pluralize_underscored.titleize %>
|
6
|
+
label_<%= model_name_underscored %>: <%= model_name_underscored.titleize %>
|
7
|
+
permission_view_<%= model_name_pluralize_underscored %>: View <%= model_name_pluralize_underscored.titleize %>
|
8
|
+
permission_manage_<%= model_name_pluralize_underscored %>: Manage <%= model_name_pluralize_underscored.titleize %>
|
9
|
+
title_<%= model_name_underscored %>_new: Click to create new <%= model_name_underscored.titleize %>
|
10
|
+
<%= db_columns.collect{|column_name, _| "\n #{column_options[:lang_key]}: #{column_name.humanize}" }.join %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module <%= controller_class %>Helper
|
2
|
+
|
3
|
+
def render_api_<%= model_name_underscored %>(api, <%= model_name_underscored %>)
|
4
|
+
api.<%= model_name_underscored %> do
|
5
|
+
api.id <%= model_name_underscored %>.id
|
6
|
+
<%- db_columns.keys.each do |column_name| -%>
|
7
|
+
api.<%= column_name %> <%= model_name_underscored %>.<%= column_name %>
|
8
|
+
<%- end -%>
|
9
|
+
<%- if acts_as_customizable? -%>
|
10
|
+
render_api_custom_values <%= model_name_underscored %>.visible_custom_field_values, api
|
11
|
+
<%- end -%>
|
12
|
+
<%- if acts_as_attachable? -%>
|
13
|
+
api.array :attachments do
|
14
|
+
<%= model_name_underscored %>.attachments.each do |attachment|
|
15
|
+
render_api_attachment(attachment, api)
|
16
|
+
end
|
17
|
+
end if include_in_api_response?('attachments')
|
18
|
+
<%- end -%>
|
19
|
+
|
20
|
+
call_hook(:helper_render_api_<%= model_name_underscored %>, {api: api, <%= model_name_underscored %>: <%= model_name_underscored %>})
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
module <%= plugin_title %>
|
2
|
+
class <%= model_name %>Hooks < Redmine::Hook::ViewListener
|
3
|
+
|
4
|
+
render_on :view_custom_fields_form_<%= model_name_underscored %>_custom_field, partial: 'custom_fields/view_custom_fields_form_<%= model_name_underscored %>_custom_field'
|
5
|
+
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class <%= model_name %>Mailer < Mailer
|
2
|
+
|
3
|
+
helper :<%= model_name_pluralize_underscored %>
|
4
|
+
|
5
|
+
def <%= model_name_underscored %>_added(<%= model_name_underscored %>)
|
6
|
+
<%- if project? -%>
|
7
|
+
redmine_headers 'Project' => <%= model_name_underscored %>.project.identifier
|
8
|
+
|
9
|
+
<%- end -%>
|
10
|
+
<%- if author? -%>
|
11
|
+
@author = <%= model_name_underscored %>.author
|
12
|
+
<%- end -%>
|
13
|
+
@<%= model_name_underscored %> = <%= model_name_underscored %>
|
14
|
+
@<%= model_name_underscored %>_url = url_for(controller: '<%= model_name_pluralize_underscored %>', action: 'show', id: <%= model_name_underscored %>)
|
15
|
+
|
16
|
+
message_id <%= model_name_underscored %>
|
17
|
+
references <%= model_name_underscored %>
|
18
|
+
|
19
|
+
mail to: <%= model_name_underscored %>.notified_users,
|
20
|
+
subject: "#{l(:label_<%= model_name_underscored %>)}: #{<%= model_name_underscored %>.to_s}"
|
21
|
+
end
|
22
|
+
|
23
|
+
def <%= model_name_underscored %>_updated(<%= model_name_underscored %>)
|
24
|
+
<%- if project? -%>
|
25
|
+
redmine_headers 'Project' => <%= model_name_underscored %>.project.identifier
|
26
|
+
|
27
|
+
<%- end -%>
|
28
|
+
<%- if author? -%>
|
29
|
+
@author = <%= model_name_underscored %>.author
|
30
|
+
<%- end -%>
|
31
|
+
@<%= model_name_underscored %> = <%= model_name_underscored %>
|
32
|
+
@<%= model_name_underscored %>_url = url_for(controller: '<%= model_name_pluralize_underscored %>', action: 'show', id: <%= model_name_underscored %>)
|
33
|
+
|
34
|
+
message_id <%= model_name_underscored %>
|
35
|
+
references <%= model_name_underscored %>
|
36
|
+
|
37
|
+
mail to: <%= model_name_underscored %>.notified_users,
|
38
|
+
subject: "#{l(:label_<%= model_name_underscored %>)}: #{<%= model_name_underscored %>.to_s}"
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class Create<%= model_name_pluralize_underscored.camelize %> < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :<%= model_name_pluralize_underscored %>, force: true do |t|
|
4
|
+
<%- db_columns.each do |column_name, column_attrs| -%>
|
5
|
+
t.<%= column_attrs[:type] %> :<%= column_name %>, null: <%= column_attrs[:null] %>
|
6
|
+
<%- end -%>
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
class <%= model_name %> < ActiveRecord::Base
|
2
|
+
include Redmine::SafeAttributes
|
3
|
+
|
4
|
+
<%= 'belongs_to :project' if project? %>
|
5
|
+
<%= 'belongs_to :author, class_name: \'User\', foreign_key: \'author_id\'' if author? %>
|
6
|
+
|
7
|
+
scope :visible, lambda { |*args|
|
8
|
+
where(<%= model_name %>.visible_condition(args.shift || User.current, *args))<%= '.joins(:project)' if project? %>
|
9
|
+
}
|
10
|
+
<% if name_column? %>
|
11
|
+
scope :sorted, lambda { order("#{table_name}.<%= name_column %> ASC") }
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if acts_as_searchable? %>
|
15
|
+
acts_as_searchable columns: [<%= string_columns.collect{|c, _| "\"\#{#{model_name}.table_name}.#{c}\"" }.join(', ') %>],
|
16
|
+
date_column: :created_at
|
17
|
+
<%- end -%>
|
18
|
+
<%- if acts_as_customizable? -%>
|
19
|
+
acts_as_customizable
|
20
|
+
<%- end -%>
|
21
|
+
<%- if acts_as_attachable? -%>
|
22
|
+
acts_as_attachable
|
23
|
+
<%- end -%>
|
24
|
+
<%- if acts_as_event? -%>
|
25
|
+
acts_as_event title: ->(o){"#{l(:label_<%= model_name_underscored %>)} - #{o.to_s}"},
|
26
|
+
url: ->(o){{controller: '<%= model_name_pluralize_underscored %>', action: 'show', id: o, project_id: o.project}},
|
27
|
+
datetime: :created_at, description: :<%= description_column || name_column %>
|
28
|
+
<%- end -%>
|
29
|
+
<%- if acts_as_activity_provider? -%>
|
30
|
+
acts_as_activity_provider author_key: <%= author? ? ':author_id' : 'nil' %>, timestamp: "#{table_name}.created_at"
|
31
|
+
<%- end -%>
|
32
|
+
<%- if acts_as_watchable? -%>
|
33
|
+
acts_as_watchable
|
34
|
+
<%- end -%>
|
35
|
+
|
36
|
+
<%= 'validates :project_id, :presence => true' if project? %>
|
37
|
+
<%= 'validates :author_id, :presence => true' if author? %>
|
38
|
+
|
39
|
+
attr_protected :id
|
40
|
+
|
41
|
+
<%- if safe_columns.any? -%>
|
42
|
+
safe_attributes <%= safe_columns.collect{|column_name, _| "'#{column_name}'"}.join(', ') %>
|
43
|
+
<%- end -%>
|
44
|
+
<%- if acts_as_customizable? -%>
|
45
|
+
safe_attributes 'custom_field_values', 'custom_fields'
|
46
|
+
<%- end -%>
|
47
|
+
<%- if project? -%>
|
48
|
+
safe_attributes 'project_id', :if => lambda {|<%= model_name_underscored %>, user| <%= model_name_underscored %>.new_record? }
|
49
|
+
<%- end -%>
|
50
|
+
|
51
|
+
<%- if mail? -%>
|
52
|
+
after_create :send_create_notification
|
53
|
+
after_update :send_update_notification
|
54
|
+
<%- end -%>
|
55
|
+
|
56
|
+
def self.visible_condition(user, options={})
|
57
|
+
<%- if project? -%>
|
58
|
+
Project.allowed_to_condition(user, :<%= view_permission %>, options)
|
59
|
+
<%- else -%>
|
60
|
+
'1=1'
|
61
|
+
<%- end -%>
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.css_icon
|
65
|
+
'icon icon-user'
|
66
|
+
end
|
67
|
+
|
68
|
+
<%- if !project? -%>
|
69
|
+
def project
|
70
|
+
nil
|
71
|
+
end
|
72
|
+
<%- end -%>
|
73
|
+
|
74
|
+
def visible?(user = nil)
|
75
|
+
user ||= User.current
|
76
|
+
user.allowed_to?(:<%= view_permission %>, self.project, global: true)
|
77
|
+
end
|
78
|
+
|
79
|
+
def editable?(user = nil)
|
80
|
+
user ||= User.current
|
81
|
+
user.allowed_to?(:<%= edit_permission %>, self.project, global: true)
|
82
|
+
end
|
83
|
+
|
84
|
+
def deletable?(user = nil)
|
85
|
+
user ||= User.current
|
86
|
+
user.allowed_to?(:<%= delete_permission %>, self.project, global: true)
|
87
|
+
end
|
88
|
+
|
89
|
+
def attachments_visible?(user = nil)
|
90
|
+
visible?(user)
|
91
|
+
end
|
92
|
+
|
93
|
+
def attachments_editable?(user = nil)
|
94
|
+
editable?(user)
|
95
|
+
end
|
96
|
+
|
97
|
+
def attachments_deletable?(user = nil)
|
98
|
+
deletable?(user)
|
99
|
+
end
|
100
|
+
|
101
|
+
<%- if name_column? -%>
|
102
|
+
def to_s
|
103
|
+
<%= name_column %>.to_s
|
104
|
+
end
|
105
|
+
<%- end -%>
|
106
|
+
|
107
|
+
def created_on
|
108
|
+
created_at
|
109
|
+
end
|
110
|
+
|
111
|
+
def updated_on
|
112
|
+
updated_at
|
113
|
+
end
|
114
|
+
|
115
|
+
<%- if mail? -%>
|
116
|
+
def notified_users
|
117
|
+
if project
|
118
|
+
project.notified_users.reject {|user| !visible?(user)}
|
119
|
+
else
|
120
|
+
[User.current]
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
def send_create_notification
|
125
|
+
# if Setting.notified_events.include?('<%= model_name_underscored %>_added')
|
126
|
+
<%= model_name %>Mailer.<%= model_name_underscored %>_added(self).deliver
|
127
|
+
# end
|
128
|
+
end
|
129
|
+
|
130
|
+
def send_update_notification
|
131
|
+
# if Setting.notified_events.include?('<%= model_name_underscored %>_updated')
|
132
|
+
<%= model_name %>Mailer.<%= model_name_underscored %>_updated(self).deliver
|
133
|
+
# end
|
134
|
+
end
|
135
|
+
<%- end -%>
|
136
|
+
|
137
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%%= title l(:heading_<%= model_name_underscored %>_new) %>
|
2
|
+
|
3
|
+
<%%= form_for([@project, @<%= model_name_underscored %>], html: {multipart: <%= acts_as_attachable? %>, id: '<%= model_name_underscored %>_form', class: 'tabular'}) do |f| %>
|
4
|
+
<%%= error_messages_for @<%= model_name_underscored %> %>
|
5
|
+
|
6
|
+
<div class="box">
|
7
|
+
<%%= render partial: 'form', locals: {<%= model_name_underscored %>: @<%= model_name_underscored %>} %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
<%%= submit_tag l(:button_create), title: l(:button_create) %>
|
12
|
+
</p>
|
13
|
+
<%% end %>
|
14
|
+
<%% ### PAGE CUSTOMS ########################################################## %>
|
15
|
+
<%% content_for :sidebar do %>
|
16
|
+
<%%= render :partial => '<%= model_name_pluralize_underscored %>/sidebar' %>
|
17
|
+
<%% end %>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class <%= model_name %>Query < EasyQuery
|
2
|
+
|
3
|
+
self.queried_class = <%= model_name %>
|
4
|
+
|
5
|
+
def entity
|
6
|
+
<%= model_name %>
|
7
|
+
end
|
8
|
+
|
9
|
+
def initialize_available_filters
|
10
|
+
<%- db_columns.each do |column_name, column_options| -%>
|
11
|
+
<%- if project? && column_name == 'project_id' -%>
|
12
|
+
if project.nil?
|
13
|
+
add_available_filter '<%= column_name %>', name: <%= model_name %>.human_attribute_name(:<%= column_name %>), type: :<%= column_options[:query_type] %>, values: all_projects_values
|
14
|
+
end
|
15
|
+
<%- else -%>
|
16
|
+
add_available_filter '<%= column_name %>', name: <%= model_name %>.human_attribute_name(:<%= column_name %>), type: :<%= column_options[:query_type] -%>
|
17
|
+
<%- end -%>
|
18
|
+
<%- end -%>
|
19
|
+
<%- if acts_as_customizable? -%>
|
20
|
+
add_custom_fields_filters(<%= model_name %>CustomField)
|
21
|
+
<%- end -%>
|
22
|
+
end
|
23
|
+
|
24
|
+
def available_columns
|
25
|
+
return @available_columns if @available_columns
|
26
|
+
|
27
|
+
<%- db_columns.each do |column_name, column_options| -%>
|
28
|
+
add_available_column '<%= column_options[:query_column_name] || column_name %>', caption: <%= model_name %>.human_attribute_name(:<%= column_name %>)
|
29
|
+
<%- end -%>
|
30
|
+
<%- if acts_as_customizable? -%>
|
31
|
+
@available_columns += <%= model_name %>CustomField.visible.collect {|cf| QueryCustomFieldColumn.new(cf) }
|
32
|
+
<%- end -%>
|
33
|
+
|
34
|
+
@available_columns
|
35
|
+
end
|
36
|
+
|
37
|
+
def default_list_columns
|
38
|
+
super.presence || <%= db_columns.collect{|column_name, column_options| (column_options[:query_column_name] || column_name).to_sym}[0..3].to_s %>.flat_map{|c| [c.to_s, c.to_sym]}
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% if project? %>
|
2
|
+
resources :projects do
|
3
|
+
resources :<%= model_name_pluralize_underscored %>
|
4
|
+
end
|
5
|
+
<% end %>
|
6
|
+
resources :<%= model_name_pluralize_underscored %> do
|
7
|
+
collection do
|
8
|
+
get 'bulk_edit'
|
9
|
+
post 'bulk_update'
|
10
|
+
get 'context_menu'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
render_api_<%= model_name_underscored %>(api, @<%= model_name_underscored %>)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<%%= title @<%= model_name_underscored %> %>
|
2
|
+
<div class="issue">
|
3
|
+
<table class="attributes">
|
4
|
+
<%%= issue_fields_rows do |rows| %>
|
5
|
+
<%- safe_columns.each_with_index do |column, idx| -%>
|
6
|
+
<%- next if description_column? && column[0] == description_column -%>
|
7
|
+
<%- if idx % 2 == 0 -%>
|
8
|
+
<%% rows.left <%= model_name %>.human_attribute_name(:<%= column[0] %>), format_object(@<%= model_name_underscored %>.<%= column[0] %>) %>
|
9
|
+
<%- else -%>
|
10
|
+
<%% rows.right <%= model_name %>.human_attribute_name(:<%= column[0] %>), format_object(@<%= model_name_underscored %>.<%= column[0] %>) %>
|
11
|
+
<%- end -%>
|
12
|
+
<%- end -%>
|
13
|
+
<%% end %>
|
14
|
+
<%%= render_custom_fields_rows(@<%= model_name_underscored %>) %>
|
15
|
+
<%%= call_hook(:view_<%= model_name_pluralize_underscored %>_show_details_bottom, :<%= model_name_underscored %> => @<%= model_name_underscored %>) %>
|
16
|
+
</table>
|
17
|
+
<%- if description_column? -%>
|
18
|
+
<%% if !@<%= model_name_underscored %>.<%= description_column %>.blank? %>
|
19
|
+
<hr />
|
20
|
+
<div class="description">
|
21
|
+
<p><strong><%%= <%= model_name %>.human_attribute_name(:<%= description_column %>) %></strong></p>
|
22
|
+
<div class="wiki">
|
23
|
+
<%%= textilizable @<%= model_name_underscored %>, :<%= description_column %>, attachments: @<%= model_name_underscored %>.attachments %>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<%% end %>
|
27
|
+
<%- end -%>
|
28
|
+
<%- if acts_as_attachable? -%>
|
29
|
+
<%% if @<%= model_name_underscored %>.attachments.any? -%>
|
30
|
+
<hr />
|
31
|
+
<%%= link_to_attachments @<%= model_name_underscored %>, :thumbnails => true %>
|
32
|
+
<%% end %>
|
33
|
+
<%- end -%>
|
34
|
+
</div>
|
35
|
+
<%% ### PAGE CUSTOMS ########################################################## %>
|
36
|
+
<%% content_for :sidebar do %>
|
37
|
+
<%%= render :partial => '<%= model_name_pluralize_underscored %>/sidebar' %>
|
38
|
+
<%% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Description:
|
2
|
+
The plugin generator creates stubs for a new Redmine plugin.
|
3
|
+
Plugin is prepared for use in Redmine and Easy Redmine as well.
|
4
|
+
|
5
|
+
Example:
|
6
|
+
rails g redmine_extensions:plugin NameOfNewPlugin
|
7
|
+
create plugins/name_of_new_plugin/app/controllers
|
8
|
+
...
|
9
|
+
|
10
|
+
Help:
|
11
|
+
rails g redmine_extensions:plugin --help
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module RedmineExtensions
|
2
|
+
class PluginGenerator < Rails::Generators::NamedBase
|
3
|
+
source_root File.expand_path('../templates', __FILE__)
|
4
|
+
|
5
|
+
attr_reader :plugin_path, :plugin_name_underscored, :plugin_pretty_name, :plugin_title
|
6
|
+
|
7
|
+
def initialize(*args)
|
8
|
+
super
|
9
|
+
@plugin_name_underscored = file_name.underscore
|
10
|
+
@plugin_pretty_name = plugin_name_underscored.titleize
|
11
|
+
@plugin_path = "plugins/#{plugin_name_underscored}"
|
12
|
+
@plugin_title = @plugin_name_underscored.camelize
|
13
|
+
end
|
14
|
+
|
15
|
+
def copy_templates
|
16
|
+
empty_directory "#{plugin_path}/app"
|
17
|
+
empty_directory "#{plugin_path}/app/controllers"
|
18
|
+
empty_directory "#{plugin_path}/app/helpers"
|
19
|
+
empty_directory "#{plugin_path}/app/models"
|
20
|
+
empty_directory "#{plugin_path}/app/views"
|
21
|
+
empty_directory "#{plugin_path}/db/migrate"
|
22
|
+
empty_directory "#{plugin_path}/db/data"
|
23
|
+
empty_directory "#{plugin_path}/assets/images"
|
24
|
+
empty_directory "#{plugin_path}/assets/javascripts"
|
25
|
+
empty_directory "#{plugin_path}/assets/stylesheets"
|
26
|
+
empty_directory "#{plugin_path}/config/locales"
|
27
|
+
empty_directory "#{plugin_path}/lib/#{plugin_name_underscored}"
|
28
|
+
|
29
|
+
empty_directory "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/controllers"
|
30
|
+
empty_directory "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/helpers"
|
31
|
+
empty_directory "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/models"
|
32
|
+
empty_directory "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/others"
|
33
|
+
|
34
|
+
template '.gitkeep', "#{plugin_path}/app/controllers/.gitkeep"
|
35
|
+
template '.gitkeep', "#{plugin_path}/app/helpers/.gitkeep"
|
36
|
+
template '.gitkeep', "#{plugin_path}/app/models/.gitkeep"
|
37
|
+
template '.gitkeep', "#{plugin_path}/app/views/.gitkeep"
|
38
|
+
template '.gitkeep', "#{plugin_path}/db/migrate/.gitkeep"
|
39
|
+
template '.gitkeep', "#{plugin_path}/assets/images/.gitkeep"
|
40
|
+
template '.gitkeep', "#{plugin_path}/assets/javascripts/.gitkeep"
|
41
|
+
template '.gitkeep', "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/others/.gitkeep"
|
42
|
+
|
43
|
+
#template 'Gemfile', "#{plugin_path}/Gemfile"
|
44
|
+
template 'init.rb.erb', "#{plugin_path}/init.rb"
|
45
|
+
template 'en.yml', "#{plugin_path}/config/locales/en.yml"
|
46
|
+
template 'routes.rb.erb', "#{plugin_path}/config/routes.rb"
|
47
|
+
template 'hooks.rb.erb', "#{plugin_path}/lib/#{plugin_name_underscored}/hooks.rb"
|
48
|
+
template 'internals.rb.erb', "#{plugin_path}/lib/#{plugin_name_underscored}/internals.rb"
|
49
|
+
template 'issue_patch.example.erb', "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/models/issue_patch.example"
|
50
|
+
template 'issues_controller_patch.example.erb', "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/controllers/issues_controller_patch.example"
|
51
|
+
template 'issues_helper_patch.example.erb', "#{plugin_path}/lib/#{plugin_name_underscored}/redmine_patch/helpers/issues_helper_patch.example"
|
52
|
+
end
|
53
|
+
|
54
|
+
hook_for :entity, as: :entity, in: :redmine_extensions, type: :boolean
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
gem 'redmine_extensions', '~> 0.0.12'
|
data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/after_init.rb.erb
RENAMED
File without changes
|
data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/hooks.rb.erb
RENAMED
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Redmine::Plugin.register :<%= plugin_name_underscored %> do
|
2
|
-
name
|
3
|
-
author
|
4
|
-
author_url
|
5
|
-
description
|
6
|
-
version '
|
2
|
+
name '<%= plugin_pretty_name %>'
|
3
|
+
author ''
|
4
|
+
author_url ''
|
5
|
+
description ''
|
6
|
+
version '<%= Date.today.strftime('%Y.01.01') %>'
|
7
7
|
|
8
8
|
#into easy_settings goes available setting as a symbol key, default value as a value
|
9
9
|
settings easy_settings: { }
|
@@ -12,10 +12,10 @@ end
|
|
12
12
|
|
13
13
|
Dir[File.dirname(__FILE__) + '/lib/<%= plugin_name_underscored %>/redmine_patch/*/*.rb'].each {|file| require file }
|
14
14
|
|
15
|
-
# this block is
|
16
|
-
# means after all plugins
|
15
|
+
# this block is executed once just after Redmine is started
|
16
|
+
# means after all plugins are initialized
|
17
17
|
# it is place for plain requires, not require_dependency
|
18
|
-
# it should contain hooks, permissions - base class in
|
18
|
+
# it should contain hooks, permissions - base class in Redmine is required thus is not reloaded
|
19
19
|
ActiveSupport.on_load(:easyproject, yield: true) do
|
20
20
|
|
21
21
|
require '<%= plugin_name_underscored %>/internals'
|
@@ -29,6 +29,6 @@ end
|
|
29
29
|
# in this block should be used require_dependency, but only if necessary.
|
30
30
|
# better is to place a class in file named by rails naming convency and let it be loaded automatically
|
31
31
|
# Here goes query registering, custom fields registering and so on
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
ActionDispatch::Reloader.to_prepare do
|
33
|
+
|
34
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/routes.rb.erb
RENAMED
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
class EasyEntityFormatter
|
2
|
+
|
3
|
+
def initialize(view_context)
|
4
|
+
@view_context = view_context
|
5
|
+
end
|
6
|
+
|
7
|
+
def view
|
8
|
+
@view_context
|
9
|
+
end
|
10
|
+
|
11
|
+
def l(*args)
|
12
|
+
view.l(*args)
|
13
|
+
end
|
14
|
+
|
15
|
+
def format_column(column, entity)
|
16
|
+
format_object column.value_object(entity)
|
17
|
+
end
|
18
|
+
|
19
|
+
def format_object(value)
|
20
|
+
view.format_object(value)
|
21
|
+
end
|
22
|
+
|
23
|
+
def ending_buttons?
|
24
|
+
false
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|