diff -r d2818a957a5c -r 445cff36dd5c models/mailer.rb --- a/models/mailer.rb Fri Mar 20 09:00:15 2015 -0500 +++ b/models/mailer.rb Fri Mar 20 09:15:25 2015 -0500 @@ -95,8 +95,13 @@ @issues_url = url_for(:controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => user.id, :sort => 'due_date:asc') - mail :to => user.mail, - :subject => l(:mail_subject_reminder, :count => issues.size, :days => days) + if days > 0 + mail :to => user.mail, + :subject => l(:mail_subject_reminder, :count => issues.size, :days => days) + else + mail :to => user.mail, + :subject => l(:mail_subject_reminder_overdue, :count => issues.size, :days => days) + end end # Builds a Mail::Message object used to email users belonging to the added document's project. diff -r d2818a957a5c -r 445cff36dd5c views/mailer/reminder.html.erb --- a/views/mailer/reminder.html.erb Fri Mar 20 09:00:15 2015 -0500 +++ b/views/mailer/reminder.html.erb Fri Mar 20 09:15:25 2015 -0500 @@ -1,4 +1,8 @@ -
<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>
+<% if @days>0 %> +<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>
+<% else %> +<%= l(:mail_body_reminder_overdue, :count => @issues.size, :days => @days) %>
+<% end %>