Permalink
Browse files

cleaning

  • Loading branch information...
0 parents commit 09dc4d6300e602dced0ef57f4b73808c0ec50e53 Marek Kreft committed Jul 15, 2009
Showing with 1,665 additions and 0 deletions.
  1. +17 −0 COPYRIGHT.txt
  2. +339 −0 GPL.txt
  3. +40 −0 README.markdown
  4. +40 −0 README.rdoc
  5. +40 −0 app/.svn/entries
  6. +1 −0 app/.svn/format
  7. +28 −0 app/controllers/.svn/entries
  8. +1 −0 app/controllers/.svn/format
  9. +28 −0 app/helpers/.svn/entries
  10. +1 −0 app/helpers/.svn/format
  11. +28 −0 app/models/.svn/entries
  12. +1 −0 app/models/.svn/format
  13. +28 −0 app/views/.svn/entries
  14. +1 −0 app/views/.svn/format
  15. +37 −0 assets/.svn/entries
  16. +1 −0 assets/.svn/format
  17. +28 −0 assets/images/.svn/entries
  18. +1 −0 assets/images/.svn/format
  19. +28 −0 assets/javascripts/.svn/entries
  20. +1 −0 assets/javascripts/.svn/format
  21. +28 −0 assets/stylesheets/.svn/entries
  22. +1 −0 assets/stylesheets/.svn/format
  23. +31 −0 config/.svn/entries
  24. +1 −0 config/.svn/format
  25. +130 −0 config/locales/.svn/entries
  26. +1 −0 config/locales/.svn/format
  27. +3 −0 config/locales/.svn/text-base/en.yml.svn-base
  28. +4 −0 config/locales/.svn/text-base/nl.yml.svn-base
  29. +3 −0 config/locales/.svn/text-base/pl.yml.svn-base
  30. +3 −0 config/locales/en.yml
  31. +4 −0 config/locales/nl.yml
  32. +3 −0 config/locales/pl.yml
  33. +31 −0 db/.svn/entries
  34. +1 −0 db/.svn/format
  35. +28 −0 db/migrate/.svn/entries
  36. +1 −0 db/migrate/.svn/format
  37. +22 −0 init.rb
  38. +130 −0 lang/.svn/entries
  39. +1 −0 lang/.svn/format
  40. +3 −0 lang/.svn/text-base/en.yml.svn-base
  41. +4 −0 lang/.svn/text-base/nl.yml.svn-base
  42. +3 −0 lang/.svn/text-base/pl.yml.svn-base
  43. +3 −0 lang/en.yml
  44. +4 −0 lang/nl.yml
  45. +3 −0 lang/pl.yml
  46. +133 −0 lib/.svn/entries
  47. +1 −0 lib/.svn/format
  48. +13 −0 lib/.svn/text-base/mail_configurator_account_hook.rb.svn-base
  49. +30 −0 lib/.svn/text-base/mail_configurator_issue_patch.rb.svn-base
  50. +43 −0 lib/.svn/text-base/mail_configurator_my_controller_hook.rb.svn-base
  51. +13 −0 lib/mail_configurator_account_hook.rb
  52. +30 −0 lib/mail_configurator_issue_patch.rb
  53. +43 −0 lib/mail_configurator_my_controller_hook.rb
  54. +28 −0 lib/tasks/.svn/entries
  55. +1 −0 lib/tasks/.svn/format
  56. +69 −0 patch/.svn/entries
  57. +1 −0 patch/.svn/format
  58. +26 −0 patch/.svn/text-base/mail_configurator.patch.svn-base
  59. +26 −0 patch/mail_configurator.patch
  60. +62 −0 test/.svn/entries
  61. +1 −0 test/.svn/format
  62. +5 −0 test/.svn/text-base/test_helper.rb.svn-base
  63. +5 −0 test/test_helper.rb
@@ -0,0 +1,17 @@
+Mail Configurator plugin enables two new options for mail configuration. In my_account section additional options allow to turn off sending mail option completely, or restrict it only for case in wich user is assigned to the issue.
+
+Copyright (C) 2009 GOYELLO.
+
+This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
339 GPL.txt

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,40 @@
+## Redmine Mail Configuration plugin
+
+The Mail Configuration plugin will add to Your Redmine 'My account' site two new checkboxes in 'Email notifications' area.
+First option will allow sending mail notification only if user is assigned to the issue. Second will block sending mail completly.
+
+## Getting the plugin
+
+## Install
+
+This plugin needs to be installed same as the Redmine instruction for plugins describes (http://www.redmine.org/wiki/1/Plugins).
+You can skip 'rake' command as there are no database migration files.
+You have to also rn the patch file from redmine_mail_configurator\patch\
+It will only add two hooks in your source code, so the changes are insignificant, but still you should BACKUP Your Files.
+
+## Features
+
+The Mail Configuration plugin will add to Your Redmine 'My account' site two new checkboxes in 'Email notifications' area.
+First option will allow sending mail notification only if user is assigned to the issue. Second will block sending mail completly.
+
+Changes made by patch:
+
+<redmine root>\app\controllers\my_controller.rb
+
+ @user.pref[:no_self_notified] = (params[:no_self_notified] == '1')
+
+ ######++ call_hook(:my_controller_new_user_preferences, { :params => params, :user_pref => @user.pref })
+
+ if @user.save
+
+
+<redmine root>\app\views\my\account.rhtml
+
+ <p><label><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %> <%= l(:label_user_mail_no_self_notified) %></label></p>
+
+ ######++<%= call_hook(:mail_configurator_options, { :user_pref => @user.pref }) %>
+
+ </div>
+
+
+![Alt text](/path/to/img.jpg)
@@ -0,0 +1,40 @@
+The Mail Configuration plugin will add to Your Redmine 'My account' site two new checkboxes in 'Email notifications' area.
+First option will allow sending mail notification only if user is assigned to the issue. Second will block sending mail completly.
+
+To install Mail Configutation plugin just copy its content to your <Redmine root>\vendors\plugins\
+
+and (as the hooks for new feature haven't been added to the core of Redmine yet), there are two changes in core files needed to be made manually. Remember to backup files listed below firts. No, seriously, backup your files.
+
+FIRST CHANGE IN:
+
+<redmine root>\app\controllers\my_controller.rb
+
+find line 59
+
+@user.pref[:no_self_notified] = (params[:no_self_notified] == '1')
+
+#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+# after above line add:
+call_hook(:my_controller_new_user_preferences, { :params => params, :user_pref => @user.pref })
+
+# which should be before:
+if @user.save
+
+
+
+SECOND CHANGE IN:
+
+<redmine root>\app\views\my\account.rhtml
+
+find line 34
+
+<p><label><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %> <%= l(:label_user_mail_no_self_notified) %></label></p>
+
+#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+# after above line add:
+<%= call_hook(:mail_configurator_options, { :user_pref => @user.pref }) %>
+# which should be before line:
+</div>
+
+
+NOW THE PLUGIN IS FULL IMPLEMENTED AND SHOULD BE WORKING FINE.
@@ -0,0 +1,40 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/app
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
+helpers
+dir
+
+models
+dir
+
+controllers
+dir
+
+views
+dir
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/app/controllers
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/app/helpers
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/app/models
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/app/views
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,37 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/assets
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
+images
+dir
+
+javascripts
+dir
+
+stylesheets
+dir
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/assets/images
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/assets/javascripts
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
@@ -0,0 +1 @@
+9
@@ -0,0 +1,28 @@
+9
+
+dir
+18
+svn+ssh://dvirep/var/svn/repos/redmine/trunk/redmine/vendor/plugins/redmine_mail_configurator/assets/stylesheets
+svn+ssh://dvirep/var/svn/repos/redmine
+
+
+
+2009-06-26T08:59:43.368122Z
+6
+mkreft
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4fd30d62-d8fb-4443-b27a-b81486d77269
+
Oops, something went wrong.

0 comments on commit 09dc4d6

Please sign in to comment.