From 763900f36713e91a0a9f4eb0bdd3163226452740 Mon Sep 17 00:00:00 2001 From: germanolucas Date: Wed, 19 Sep 2018 15:55:45 -0300 Subject: [PATCH 1/2] Update mailer_patch.rb There is a problem, at least in Redmine 3.4. I can't send e-mails in html format using html_body tag. I had to do a little change in the mailer_patch.rb file. --- lib/redmine_custom_workflows/mailer_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_custom_workflows/mailer_patch.rb b/lib/redmine_custom_workflows/mailer_patch.rb index 863ed23..29524b3 100644 --- a/lib/redmine_custom_workflows/mailer_patch.rb +++ b/lib/redmine_custom_workflows/mailer_patch.rb @@ -18,7 +18,7 @@ module RedmineCustomWorkflows if text_body || html_body mail headers do |format| format.text { render :text => text_body } if text_body - format.html { render :html => html_body } if html_body + format.html { render :text => html_body } if html_body end elsif template_name template_params.each { |k,v| instance_variable_set("@#{k}", v) } From e293d2539921218f12be1f0396b064c3a4ecb65c Mon Sep 17 00:00:00 2001 From: germano Date: Fri, 28 Sep 2018 15:25:00 -0300 Subject: [PATCH 2/2] =?UTF-8?q?atualiza=C3=A7=C3=A3o=20da=20exibi=C3=A7?= =?UTF-8?q?=C3=A3o=20do=20=C3=ADcone=20no=20Admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 8248f92..3d7f8aa 100644 --- a/init.rb +++ b/init.rb @@ -8,7 +8,7 @@ Redmine::Plugin.register :redmine_custom_workflows do url 'http://www.redmine.org/plugins/custom-workflows' menu :admin_menu, :custom_workflows, {:controller => 'custom_workflows', :action => 'index'}, - :if => Proc.new { User.current.admin? }, :caption => :label_custom_workflow_plural + :if => Proc.new { User.current.admin? }, :caption => :label_custom_workflow_plural, :html => {:class => 'icon'} permission :manage_project_workflow, {}, :require => :member end