Feature #1694 ยป email_overdue.patch
models/mailer.rb Fri Mar 20 09:00:15 2015 -0500 โ models/mailer.rb Fri Mar 20 09:15:25 2015 -0500 | ||
---|---|---|
95 | 95 |
@issues_url = url_for(:controller => 'issues', :action => 'index', |
96 | 96 |
:set_filter => 1, :assigned_to_id => user.id, |
97 | 97 |
:sort => 'due_date:asc') |
98 |
mail :to => user.mail, |
|
99 |
:subject => l(:mail_subject_reminder, :count => issues.size, :days => days) |
|
98 |
if days > 0 |
|
99 |
mail :to => user.mail, |
|
100 |
:subject => l(:mail_subject_reminder, :count => issues.size, :days => days) |
|
101 |
else |
|
102 |
mail :to => user.mail, |
|
103 |
:subject => l(:mail_subject_reminder_overdue, :count => issues.size, :days => days) |
|
104 |
end |
|
100 | 105 |
end |
101 | 106 | |
102 | 107 |
# Builds a Mail::Message object used to email users belonging to the added document's project. |
views/mailer/reminder.html.erb Fri Mar 20 09:00:15 2015 -0500 โ views/mailer/reminder.html.erb Fri Mar 20 09:15:25 2015 -0500 | ||
---|---|---|
1 |
<p><%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %></p> |
|
1 |
<% if @days>0 %> |
|
2 |
<p><%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %></p> |
|
3 |
<% else %> |
|
4 |
<p><%= l(:mail_body_reminder_overdue, :count => @issues.size, :days => @days) %></p> |
|
5 |
<% end %> |
|
2 | 6 | |
3 | 7 |
<ul> |
4 | 8 |
<% @issues.each do |issue| -%> |
views/mailer/reminder.text.erb Fri Mar 20 09:00:15 2015 -0500 โ views/mailer/reminder.text.erb Fri Mar 20 09:15:25 2015 -0500 | ||
---|---|---|
1 |
<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>: |
|
1 |
<% if @days>0 %> |
|
2 |
<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>: |
|
3 |
<% else %> |
|
4 |
<%= l(:mail_body_reminder_overdue, :count => @issues.size, :days => @days) %>: |
|
5 |
<% end %> |
|
2 | 6 | |
3 | 7 |
<% @issues.each do |issue| -%> |
4 | 8 |
* <%= "#{issue.project} - #{issue.tracker} ##{issue.id}: #{issue.subject}" %> |