:body => render(:file => "#{method_name}.text.erb",
:body => body, :layout => 'mailer.text.erb')
part :content_type => "text/html",
- :body => render_message("#{method_name}.text.html.rhtml", body)
+ :body => render_message("#{method_name}.html.erb", body)
end
end
--- /dev/null
+<p><%= l(:notice_account_activated) %></p>
+<p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
+++ /dev/null
-<p><%= l(:notice_account_activated) %></p>
-<p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
--- /dev/null
+<p><%= l(:mail_body_account_activation_request, h(@user.login)) %></p>
+<p><%= link_to h(@url), @url %></p>
+++ /dev/null
-<p><%= l(:mail_body_account_activation_request, h(@user.login)) %></p>
-<p><%= link_to h(@url), @url %></p>
--- /dev/null
+<% if @user.auth_source %>
+<p><%= l(:mail_body_account_information_external, h(@user.auth_source.name)) %></p>
+<% else %>
+<p><%= l(:mail_body_account_information) %>:</p>
+<ul>
+ <li><%= l(:field_login) %>: <%=h @user.login %></li>
+ <li><%= l(:field_password) %>: <%=h @password %></li>
+</ul>
+<% end %>
+
+<p><%= l(:label_login) %>: <%= auto_link(@login_url) %></p>
+++ /dev/null
-<% if @user.auth_source %>
-<p><%= l(:mail_body_account_information_external, h(@user.auth_source.name)) %></p>
-<% else %>
-<p><%= l(:mail_body_account_information) %>:</p>
-<ul>
- <li><%= l(:field_login) %>: <%=h @user.login %></li>
- <li><%= l(:field_password) %>: <%=h @password %></li>
-</ul>
-<% end %>
-
-<p><%= l(:label_login) %>: <%= auto_link(@login_url) %></p>
--- /dev/null
+<%= link_to h(@added_to), @added_to_url %><br />
+
+<ul><% @attachments.each do |attachment | %>
+<li><%=h attachment.filename %></li>
+<% end %></ul>
+++ /dev/null
-<%= link_to h(@added_to), @added_to_url %><br />
-
-<ul><% @attachments.each do |attachment | %>
-<li><%=h attachment.filename %></li>
-<% end %></ul>
--- /dev/null
+<%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)<br />
+<br />
+<%= textilizable(@document, :description, :only_path => false) %>
+++ /dev/null
-<%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)<br />
-<br />
-<%= textilizable(@document, :description, :only_path => false) %>
--- /dev/null
+<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %>
+<hr />
+<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
+++ /dev/null
-<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %>
-<hr />
-<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
--- /dev/null
+<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
+
+<ul>
+<% for detail in @journal.details %>
+ <li><%= show_detail(detail, true) %></li>
+<% end %>
+</ul>
+
+<%= textilizable(@journal, :notes, :only_path => false) %>
+<hr />
+<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
+++ /dev/null
-<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
-
-<ul>
-<% for detail in @journal.details %>
- <li><%= show_detail(detail, true) %></li>
-<% end %>
-</ul>
-
-<%= textilizable(@journal, :notes, :only_path => false) %>
-<hr />
-<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
--- /dev/null
+<p><%= l(:mail_body_lost_password) %><br />
+<%= auto_link(@url) %></p>
+
+<p><%= l(:field_login) %>: <b><%=h @token.user.login %></b></p>
+++ /dev/null
-<p><%= l(:mail_body_lost_password) %><br />
-<%= auto_link(@url) %></p>
-
-<p><%= l(:field_login) %>: <b><%=h @token.user.login %></b></p>
--- /dev/null
+<h1><%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %></h1>
+<em><%=h @message.author %></em>
+
+<%= textilizable(@message, :content, :only_path => false) %>
+++ /dev/null
-<h1><%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %></h1>
-<em><%=h @message.author %></em>
-
-<%= textilizable(@message, :content, :only_path => false) %>
--- /dev/null
+<h1><%= link_to(h(@news.title), @news_url) %></h1>
+<em><%=h @news.author.name %></em>
+
+<%= textilizable(@news, :description, :only_path => false) %>
+++ /dev/null
-<h1><%= link_to(h(@news.title), @news_url) %></h1>
-<em><%=h @news.author.name %></em>
-
-<%= textilizable(@news, :description, :only_path => false) %>
--- /dev/null
+<h1><%= link_to(h(@news.title), @news_url) %></h1>
+
+<p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
+
+<%= textilizable @comment, :comments, :only_path => false %>
+++ /dev/null
-<h1><%= link_to(h(@news.title), @news_url) %></h1>
-
-<p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
-
-<%= textilizable @comment, :comments, :only_path => false %>
--- /dev/null
+<p><%= l(:mail_body_register) %><br />
+<%= auto_link(@url) %></p>
+++ /dev/null
-<p><%= l(:mail_body_register) %><br />
-<%= auto_link(@url) %></p>
--- /dev/null
+<p><%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %></p>
+
+<ul>
+<% @issues.each do |issue| -%>
+ <li><%=h issue.project %> - <%=link_to(h("#{issue.tracker} ##{issue.id}"), :controller => 'issues', :action => 'show', :id => issue, :only_path => false)%>: <%=h issue.subject %></li>
+<% end -%>
+</ul>
+
+<p><%= link_to l(:label_issue_view_all), @issues_url %></p>
+++ /dev/null
-<p><%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %></p>
-
-<ul>
-<% @issues.each do |issue| -%>
- <li><%=h issue.project %> - <%=link_to(h("#{issue.tracker} ##{issue.id}"), :controller => 'issues', :action => 'show', :id => issue, :only_path => false)%>: <%=h issue.subject %></li>
-<% end -%>
-</ul>
-
-<p><%= link_to l(:label_issue_view_all), @issues_url %></p>
--- /dev/null
+<p>This is a test email sent by Redmine.<br />
+Redmine URL: <%= auto_link(@url) %></p>
+++ /dev/null
-<p>This is a test email sent by Redmine.<br />
-Redmine URL: <%= auto_link(@url) %></p>
--- /dev/null
+<p><%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+ :author => h(@wiki_content.author)) %><br />
+<em><%=h @wiki_content.comments %></em></p>
+++ /dev/null
-<p><%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
- :author => h(@wiki_content.author)) %><br />
-<em><%=h @wiki_content.comments %></em></p>
--- /dev/null
+<p><%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+ :author => h(@wiki_content.author)) %><br />
+<em><%=h @wiki_content.comments %></em></p>
+
+<p><%= l(:label_view_diff) %>:<br />
+<%= link_to h(@wiki_diff_url), @wiki_diff_url %></p>
+++ /dev/null
-<p><%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
- :author => h(@wiki_content.author)) %><br />
-<em><%=h @wiki_content.comments %></em></p>
-
-<p><%= l(:label_view_diff) %>:<br />
-<%= link_to h(@wiki_diff_url), @wiki_diff_url %></p>