Project

General

Profile

Patch #24072 » reminder.html.erb

Bryan Settles, 2016-10-14 21:10

 
1
#added this section
2
<% x=0
3
  @issues.each do |issue|
4
    if(issue.due_date >= DateTime.now )
5
        x = x + 1
6
    end
7
  end -%>
8
#end  
9
  
10
  
11
<p><%= l(:mail_body_reminder, :count => x, :days => @days) %></p> # @issue.size replaced with variable x
12

    
13
<ul>
14
<% @issues.each do |issue| -%>
15
  <% if(issue.due_date >= DateTime.now ) -%> #if statement to make sure it not past due
16
    <li><%= issue.due_date %> -  <%=  link_to_issue(issue, :project => true, :only_path => false) %>
17
  <% end -%>
18
</li>
19
<% end -%>
20
</ul>
21

    
22

    
23

    
24
#pasted this section and changed if statement to make sure these are past due
25
<p>Past due issue(s):</p>
26
<ul>
27
<% @issues.each do |issue| -%>
28
  <% if(issue.due_date < DateTime.now ) -%>
29
    <li><%= issue.due_date %> -  <%=  link_to_issue(issue, :project => true, :only_path => false) %>
30

    
31
  <% end -%>
32
</li>
33
<% end -%>
34
</ul>
35

    
36

    
37

    
38
<p><%= link_to l(:label_issue_view_all), @issues_url %></p>
(1-1/2)