Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (935 Bytes)
Patch #24072
» reminder.html.erb
Bryan Settles
, 2016-10-14 21:10
#added this section
<%
x
=
0
@issues
.
each
do
|
issue
|
if
(
issue
.
due_date
>=
DateTime
.
now
)
x
=
x
+
1
end
end
-%>
#end
<p>
<%=
l
(
:mail_body_reminder
,
:count
=>
x
,
:days
=>
@days
)
%>
</p>
# @issue.size replaced with variable x
<ul>
<%
@issues
.
each
do
|
issue
|
-%>
<%
if
(
issue
.
due_date
>=
DateTime
.
now
)
-%>
#if statement to make sure it not past due
<li>
<%=
issue
.
due_date
%>
-
<%=
link_to_issue
(
issue
,
:project
=>
true
,
:only_path
=>
false
)
%>
<%
end
-%>
</li>
<%
end
-%>
</ul>
#pasted this section and changed if statement to make sure these are past due
<p>
Past due issue(s):
</p>
<ul>
<%
@issues
.
each
do
|
issue
|
-%>
<%
if
(
issue
.
due_date
<
DateTime
.
now
)
-%>
<li>
<%=
issue
.
due_date
%>
-
<%=
link_to_issue
(
issue
,
:project
=>
true
,
:only_path
=>
false
)
%>
<%
end
-%>
</li>
<%
end
-%>
</ul>
<p>
<%=
link_to
l
(
:label_issue_view_all
),
@issues_url
%>
</p>
« Previous
1
2
Next »
(1-1/2)
Loading...