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.
Files changed (394) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/redmine_extensions/redmine_extensions.js +2 -2
  3. data/app/models/easy_setting.rb +1 -1
  4. data/app/views/easy_queries/_entities.html.erb +60 -0
  5. data/app/views/easy_queries/_index.html.erb +10 -0
  6. data/app/views/easy_queries/_settings.html.erb +44 -0
  7. data/lib/generators/redmine_extensions/entity/USAGE +11 -0
  8. data/lib/generators/redmine_extensions/entity/entity_generator.rb +257 -0
  9. data/lib/generators/redmine_extensions/entity/templates/_form.html.erb.erb +36 -0
  10. data/lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb +9 -0
  11. data/lib/generators/redmine_extensions/entity/templates/_view_custom_fields_form_custom_field.html.erb.erb +1 -0
  12. data/lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb +8 -0
  13. data/lib/generators/redmine_extensions/entity/templates/controller.rb.erb +158 -0
  14. data/lib/generators/redmine_extensions/entity/templates/custom_field.rb.erb +7 -0
  15. data/lib/generators/redmine_extensions/entity/templates/edit.html.erb.erb +17 -0
  16. data/lib/generators/redmine_extensions/entity/templates/en.yml.erb +10 -0
  17. data/lib/generators/redmine_extensions/entity/templates/helper.rb.erb +24 -0
  18. data/lib/generators/redmine_extensions/entity/templates/hooks.rb.erb +7 -0
  19. data/lib/generators/redmine_extensions/entity/templates/index.api.rsb.erb +5 -0
  20. data/lib/generators/redmine_extensions/entity/templates/index.html.erb.erb +5 -0
  21. data/lib/generators/redmine_extensions/entity/templates/mail_added.html.erb.erb +1 -0
  22. data/lib/generators/redmine_extensions/entity/templates/mail_added.text.erb.erb +2 -0
  23. data/lib/generators/redmine_extensions/entity/templates/mail_updated.html.erb.erb +1 -0
  24. data/lib/generators/redmine_extensions/entity/templates/mail_updated.text.erb.erb +2 -0
  25. data/lib/generators/redmine_extensions/entity/templates/mailer.rb.erb +41 -0
  26. data/lib/generators/redmine_extensions/entity/templates/migration.rb.erb +9 -0
  27. data/lib/generators/redmine_extensions/entity/templates/model.rb.erb +137 -0
  28. data/lib/generators/redmine_extensions/entity/templates/new.html.erb.erb +17 -0
  29. data/lib/generators/redmine_extensions/entity/templates/query.rb.erb +41 -0
  30. data/lib/generators/redmine_extensions/entity/templates/routes.rb.erb +12 -0
  31. data/lib/generators/redmine_extensions/entity/templates/show.api.rsb.erb +1 -0
  32. data/lib/generators/redmine_extensions/entity/templates/show.html.erb.erb +38 -0
  33. data/lib/generators/redmine_extensions/plugin/USAGE +11 -0
  34. data/lib/generators/redmine_extensions/plugin/plugin_generator.rb +57 -0
  35. data/lib/generators/redmine_extensions/plugin/templates/Gemfile +1 -0
  36. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/after_init.rb.erb +0 -0
  37. data/lib/generators/redmine_extensions/plugin/templates/en.yml +2 -0
  38. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/hooks.rb.erb +0 -0
  39. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/init.rb.erb +11 -11
  40. data/lib/generators/redmine_extensions/plugin/templates/internals.rb.erb +4 -0
  41. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issue_patch.example.erb +0 -0
  42. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issues_controller_patch.example.erb +0 -0
  43. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/issues_helper_patch.example.erb +0 -0
  44. data/lib/generators/{easy_redmine_plugin → redmine_extensions/plugin}/templates/routes.rb.erb +0 -0
  45. data/lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb +27 -0
  46. data/lib/redmine_extensions/easy_query_adapter.rb +142 -0
  47. data/lib/redmine_extensions/engine.rb +4 -1
  48. data/lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb +55 -0
  49. data/lib/redmine_extensions/redmine_patches/patches.rb +4 -0
  50. data/lib/redmine_extensions/version.rb +1 -1
  51. metadata +49 -355
  52. data/app/assets/javascripts/redmine_extensions/ckeditor/CHANGES.md +0 -720
  53. data/app/assets/javascripts/redmine_extensions/ckeditor/LICENSE.md +0 -1264
  54. data/app/assets/javascripts/redmine_extensions/ckeditor/README.md +0 -39
  55. data/app/assets/javascripts/redmine_extensions/ckeditor/adapters/jquery.js +0 -10
  56. data/app/assets/javascripts/redmine_extensions/ckeditor/build-config.js +0 -139
  57. data/app/assets/javascripts/redmine_extensions/ckeditor/ckeditor.js +0 -1097
  58. data/app/assets/javascripts/redmine_extensions/ckeditor/config.js +0 -58
  59. data/app/assets/javascripts/redmine_extensions/ckeditor/contents.css +0 -134
  60. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/cs.js +0 -5
  61. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/da.js +0 -5
  62. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/de.js +0 -5
  63. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/en.js +0 -5
  64. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/es.js +0 -5
  65. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/fi.js +0 -5
  66. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/fr.js +0 -5
  67. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/he.js +0 -5
  68. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/hu.js +0 -5
  69. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/it.js +0 -5
  70. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ja.js +0 -5
  71. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ko.js +0 -5
  72. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/nl.js +0 -5
  73. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/no.js +0 -5
  74. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pl.js +0 -5
  75. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pt-br.js +0 -5
  76. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/pt.js +0 -5
  77. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/ru.js +0 -5
  78. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sk.js +0 -5
  79. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sl.js +0 -5
  80. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/sv.js +0 -5
  81. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/zh-cn.js +0 -5
  82. data/app/assets/javascripts/redmine_extensions/ckeditor/lang/zh.js +0 -5
  83. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
  84. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
  85. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
  86. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
  87. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
  88. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
  89. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -13
  90. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
  91. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
  92. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
  93. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
  94. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
  95. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
  96. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
  97. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -12
  98. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
  99. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
  100. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -12
  101. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -12
  102. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
  103. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
  104. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
  105. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
  106. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
  107. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
  108. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -13
  109. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
  110. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
  111. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
  112. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
  113. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -11
  114. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -12
  115. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
  116. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -13
  117. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
  118. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
  119. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
  120. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
  121. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
  122. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
  123. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -12
  124. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
  125. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
  126. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
  127. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
  128. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -12
  129. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -12
  130. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -11
  131. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
  132. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
  133. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -12
  134. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
  135. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
  136. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
  137. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -11
  138. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
  139. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
  140. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
  141. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
  142. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/about.js +0 -7
  143. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  144. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  145. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/LICENSE.md +0 -1243
  146. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/README.md +0 -21
  147. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/base64image/dialogs/base64image.js +0 -16
  148. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
  149. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/dialogs/codesnippet.js +0 -6
  150. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/CHANGES.md +0 -827
  151. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/LICENSE +0 -24
  152. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/README.md +0 -167
  153. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/README.ru.md +0 -171
  154. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js +0 -1
  155. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/arta.css +0 -160
  156. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/ascetic.css +0 -50
  157. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-dune.dark.css +0 -93
  158. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-dune.light.css +0 -93
  159. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-forest.dark.css +0 -93
  160. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-forest.light.css +0 -93
  161. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-heath.dark.css +0 -93
  162. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-heath.light.css +0 -93
  163. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-lakeside.dark.css +0 -93
  164. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-lakeside.light.css +0 -93
  165. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-seaside.dark.css +0 -93
  166. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/atelier-seaside.light.css +0 -93
  167. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/brown_paper.css +0 -105
  168. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/brown_papersq.png +0 -0
  169. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/dark.css +0 -105
  170. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css +0 -153
  171. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/docco.css +0 -132
  172. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/far.css +0 -113
  173. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/foundation.css +0 -133
  174. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/github.css +0 -125
  175. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/googlecode.css +0 -147
  176. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/idea.css +0 -122
  177. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/ir_black.css +0 -105
  178. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/magula.css +0 -122
  179. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/mono-blue.css +0 -62
  180. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai.css +0 -127
  181. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai_sublime.css +0 -149
  182. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/obsidian.css +0 -154
  183. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/paraiso.dark.css +0 -93
  184. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/paraiso.light.css +0 -93
  185. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/pojoaque.css +0 -106
  186. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/pojoaque.jpg +0 -0
  187. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/railscasts.css +0 -182
  188. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/rainbow.css +0 -112
  189. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/school_book.css +0 -113
  190. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/school_book.png +0 -0
  191. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/solarized_dark.css +0 -107
  192. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/solarized_light.css +0 -107
  193. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/sunburst.css +0 -160
  194. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-blue.css +0 -93
  195. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-bright.css +0 -92
  196. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night-eighties.css +0 -92
  197. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow-night.css +0 -93
  198. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/tomorrow.css +0 -90
  199. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/vs.css +0 -89
  200. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/xcode.css +0 -158
  201. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/codesnippet/lib/highlight/styles/zenburn.css +0 -116
  202. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -13
  203. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  204. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/div/dialogs/div.js +0 -9
  205. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/find/dialogs/find.js +0 -24
  206. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/flash/dialogs/flash.js +0 -24
  207. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/flash/images/placeholder.png +0 -0
  208. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/button.js +0 -8
  209. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/checkbox.js +0 -8
  210. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/form.js +0 -8
  211. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
  212. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/radio.js +0 -8
  213. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/select.js +0 -20
  214. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
  215. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/dialogs/textfield.js +0 -10
  216. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  217. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/icons.png +0 -0
  218. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/icons_hidpi.png +0 -0
  219. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  220. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  221. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/image/dialogs/image.js +0 -43
  222. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/image/images/noimage.png +0 -0
  223. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/dialogs/anchor.js +0 -7
  224. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/dialogs/link.js +0 -26
  225. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/images/anchor.png +0 -0
  226. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  227. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
  228. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  229. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  230. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  231. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/magicline/images/icon.png +0 -0
  232. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  233. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/pastefromword/filter/default.js +0 -31
  234. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/preview/preview.html +0 -13
  235. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/LICENSE.md +0 -28
  236. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/README.md +0 -25
  237. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/dialogs/options.js +0 -17
  238. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
  239. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  240. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  241. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  242. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  243. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  244. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  245. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  246. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  247. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  248. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  249. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  250. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/dialogs/smiley.js +0 -10
  251. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  252. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  253. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  254. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  255. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  256. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  257. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  258. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  259. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  260. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  261. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  262. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  263. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  264. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  265. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  266. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  267. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/envelope.png +0 -0
  268. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/heart.gif +0 -0
  269. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/heart.png +0 -0
  270. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  271. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/kiss.png +0 -0
  272. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  273. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  274. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  275. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  276. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  277. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  278. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  279. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  280. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  281. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  282. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  283. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  284. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  285. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  286. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  287. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  288. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  289. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  290. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  291. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  292. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  293. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  294. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  295. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
  296. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
  297. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
  298. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
  299. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
  300. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
  301. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
  302. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -13
  303. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
  304. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
  305. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
  306. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
  307. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
  308. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
  309. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
  310. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
  311. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
  312. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
  313. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -11
  314. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
  315. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
  316. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
  317. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
  318. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
  319. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
  320. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
  321. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
  322. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
  323. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
  324. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
  325. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
  326. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
  327. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
  328. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
  329. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
  330. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
  331. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
  332. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
  333. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
  334. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
  335. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
  336. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
  337. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
  338. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
  339. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
  340. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
  341. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
  342. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
  343. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
  344. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -12
  345. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
  346. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/table/dialogs/table.js +0 -21
  347. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -17
  348. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/dialogs/templates.css +0 -84
  349. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/dialogs/templates.js +0 -10
  350. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/default.js +0 -6
  351. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  352. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  353. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  354. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/widget/images/handle.png +0 -0
  355. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/LICENSE.md +0 -28
  356. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/README.md +0 -25
  357. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
  358. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  359. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  360. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc.js +0 -74
  361. data/app/assets/javascripts/redmine_extensions/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
  362. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog.css +0 -5
  363. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie.css +0 -5
  364. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie7.css +0 -5
  365. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_ie8.css +0 -5
  366. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  367. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor.css +0 -5
  368. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_gecko.css +0 -5
  369. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie.css +0 -5
  370. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie7.css +0 -5
  371. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_ie8.css +0 -5
  372. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/editor_iequirks.css +0 -5
  373. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/icons.png +0 -0
  374. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/icons_hidpi.png +0 -0
  375. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/arrow.png +0 -0
  376. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/close.png +0 -0
  377. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  378. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  379. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  380. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  381. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/lock-open.png +0 -0
  382. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/lock.png +0 -0
  383. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/images/refresh.png +0 -0
  384. data/app/assets/javascripts/redmine_extensions/ckeditor/skins/moono/readme.md +0 -51
  385. data/app/assets/javascripts/redmine_extensions/ckeditor/styles.js +0 -111
  386. data/app/views/layouts/redmine_extensions/application.html.erb +0 -14
  387. data/config/database.yml.mysql +0 -51
  388. data/lib/generators/easy_redmine_plugin/USAGE +0 -8
  389. data/lib/generators/easy_redmine_plugin/easy_redmine_plugin_generator.rb +0 -49
  390. data/lib/generators/easy_redmine_plugin/templates/Gemfile +0 -1
  391. data/lib/generators/easy_redmine_plugin/templates/cs.yml +0 -5
  392. data/lib/generators/easy_redmine_plugin/templates/de.yml +0 -5
  393. data/lib/generators/easy_redmine_plugin/templates/en.yml +0 -5
  394. 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,5 @@
1
+ api.array :<%= model_name_pluralize_underscored %>, api_meta(total_count: @entity_count, offset: @offset, limit: @limit) do
2
+ @entities.each do |<%= model_name_underscored %>|
3
+ render_api_<%= model_name_underscored %>(api, <%= model_name_underscored %>)
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ <%%= render @query %>
2
+ <%% ### PAGE CUSTOMS ########################################################## %>
3
+ <%% content_for :sidebar do %>
4
+ <%%= render :partial => '<%= model_name_pluralize_underscored %>/sidebar' %>
5
+ <%% end %>
@@ -0,0 +1 @@
1
+ <h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
@@ -0,0 +1,2 @@
1
+ <%%= @<%= model_name_underscored %>.to_s %>
2
+ <%%= @<%= model_name_underscored %>_url %>
@@ -0,0 +1 @@
1
+ <h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
@@ -0,0 +1,2 @@
1
+ <%%= @<%= model_name_underscored %>.to_s %>
2
+ <%%= @<%= model_name_underscored %>_url %>
@@ -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'
@@ -0,0 +1,2 @@
1
+ en:
2
+ label: Hello
@@ -1,9 +1,9 @@
1
1
  Redmine::Plugin.register :<%= plugin_name_underscored %> do
2
- name :<%= plugin_name_underscored %>_plugin_name
3
- author :<%= plugin_name_underscored %>_plugin_author
4
- author_url :<%= plugin_name_underscored %>_plugin_author_url
5
- description :<%= plugin_name_underscored %>_plugin_description
6
- version '2014'
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 runed once just after easyproject is started
16
- # means after all plugins(easy) are initialized
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 redmine is required thus is not reloaded
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
- # ActionDispatch::Reloader.to_prepare do
33
- #
34
- # end
32
+ ActionDispatch::Reloader.to_prepare do
33
+
34
+ end
@@ -0,0 +1,4 @@
1
+ # Use this module for static methods
2
+ module <%= plugin_title %>
3
+
4
+ end
@@ -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