mirror of
https://github.com/redmine/redmine.git
synced 2026-03-05 20:11:36 +01:00
Fixed partial rendering in email templates (should still work with Rails 1.2).
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@973 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -152,4 +152,9 @@ class Mailer < ActionMailer::Base
|
||||
body[:content_for_layout] = render(:file => method_name, :body => body)
|
||||
ActionView::Base.new(template_root, body, self).render(:file => "mailer/#{layout}")
|
||||
end
|
||||
|
||||
# Makes partial rendering work with Rails 1.2 (retro-compatibility)
|
||||
def self.controller_path
|
||||
''
|
||||
end unless respond_to?('controller_path')
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= l(:text_issue_added, "##{@issue.id}") %>
|
||||
<hr />
|
||||
<%= render :file => "_issue_text_html", :use_full_path => true, :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= l(:text_issue_added, "##{@issue.id}") %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue_text_plain", :use_full_path => true, :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
</ul>
|
||||
<%= textilizable(@journal.notes) %>
|
||||
<hr />
|
||||
<%= render :file => "_issue_text_html", :use_full_path => true, :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue_text_plain", :use_full_path => true, :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||||
|
||||
Reference in New Issue
Block a user