Commit c6be4ec5 authored by Mehmet Beydogan's avatar Mehmet Beydogan Committed by Robert Speicher

Add red color to overdue and open issues

parent 61a306aa
......@@ -176,4 +176,12 @@ class Issue < ActiveRecord::Base
self.related_branches(current_user).empty? &&
self.closed_by_merge_requests(current_user).empty?
end
def overdue?
if due_date
due_date.past?
else
false
end
end
end
......@@ -49,9 +49,10 @@
= icon('clock-o')
= issue.milestone.title
- if issue.due_date
&nbsp;
= icon('calendar')
= issue.due_date.to_s(:medium)
%span{class: "#{'cred' if issue.overdue?}"}
&nbsp;
= icon('calendar')
= issue.due_date.to_s(:medium)
- if issue.labels.any?
&nbsp;
- issue.labels.each do |label|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment