Notifications about issues (add/edit) are now sent in plain text and html.
Removed lang specific strings in the corresponding mail templates, so that there is only one template for all languages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@723 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class Mailer < ActionMailer::Base
|
||||
helper ApplicationHelper
|
||||
helper IssuesHelper
|
||||
|
||||
def account_information(user, password)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<%= link_to "#{issue.tracker.name} ##{issue.id}", :only_path => false, :host => Setting.host_name, :controller => 'issues', :action => 'show', :id => issue %>:
|
||||
<%= issue.subject %>
|
||||
|
||||
<ul>
|
||||
<li><%=l(:field_author)%>: <%= issue.author.name %></li>
|
||||
<li><%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %></li>
|
||||
<li><%=l(:field_status)%>: <%= issue.status.name %></li>
|
||||
</ul>
|
||||
|
||||
<%= textilizable(issue.description) %>
|
||||
@@ -1,8 +1,8 @@
|
||||
<%=l(:label_issue)%> #<%= issue.id %> - <%= issue.subject %>
|
||||
<%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %>
|
||||
<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'issues', :action => 'show', :id => issue %>
|
||||
|
||||
<%=l(:field_author)%>: <%= issue.author.name %>
|
||||
<%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %>
|
||||
<%=l(:field_status)%>: <%= issue.status.name %>
|
||||
|
||||
<%= issue.description %>
|
||||
|
||||
<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'issues', :action => 'show', :id => issue %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Issue #<%= @issue.id %> has been reported.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -0,0 +1,3 @@
|
||||
<%= l(:text_issue_added, "##{@issue.id}") %>
|
||||
<hr />
|
||||
<%= render :file => "_issue_text_html", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -0,0 +1,3 @@
|
||||
<%= l(:text_issue_added, "##{@issue.id}") %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue_text_plain", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Публикувана е нова задача с номер #<%= @issue.id %>.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Ticket Nr. #<%= @issue.id %> wurde erstellt.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Une nouvelle demande (#<%= @issue.id %>) a été soumise.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
E' stata segnalata l'anomalia #<%= @issue.id %>.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
問題 #<%= @issue.id %> が報告されました。
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Issue #<%= @issue.id %> is gerapporteerd.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Tarefa #<%= @issue.id %> foi incluída.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Tarefa #<%= @issue.id %> foi incluída.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
Brist #<%= @issue.id %> har rapporterats.
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,3 +0,0 @@
|
||||
任务 #<%= @issue.id %> 已报告
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<%= l(:text_issue_updated, "##{@issue.id}") %><br />
|
||||
<em><%= @journal.user.name %></em>
|
||||
<ul>
|
||||
<% for detail in @journal.details %>
|
||||
<li><%= show_detail(detail, true) %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= textilizable(@journal.notes) %>
|
||||
<hr />
|
||||
<%= render :file => "_issue_text_html", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +1,8 @@
|
||||
Issue #<%= @issue.id %> has been updated.
|
||||
<%= l(:text_issue_updated, "##{@issue.id}") %>
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
<%= render :file => "_issue_text_plain", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Задача #<%= @issue.id %> е обновена.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Ticket #<%= @issue.id %> wurde aktualisiert.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
La demande #<%= @issue.id %> a été mise à jour.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
L'anomalia #<%= @issue.id %> e' stata aggiornata.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
問題 #<%= @issue.id %> が更新されました。
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Issue #<%= @issue.id %> is gewijzigd.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Tarefa #<%= @issue.id %> foi alterada.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Tarefa #<%= @issue.id %> foi alterada.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
Brist #<%= @issue.id %> har uppdaterats.
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
@@ -1,8 +0,0 @@
|
||||
任务 #<%= @issue.id %> 已更新。
|
||||
<%= @journal.user.name %>
|
||||
<% for detail in @journal.details %>
|
||||
<%= show_detail(detail, true) %>
|
||||
<% end %>
|
||||
<%= @journal.notes if @journal.notes? %>
|
||||
----------------------------------------
|
||||
<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %>
|
||||
Reference in New Issue
Block a user