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 ...@@ -176,4 +176,12 @@ class Issue < ActiveRecord::Base
self.related_branches(current_user).empty? && self.related_branches(current_user).empty? &&
self.closed_by_merge_requests(current_user).empty? self.closed_by_merge_requests(current_user).empty?
end end
def overdue?
if due_date
due_date.past?
else
false
end
end
end end
...@@ -49,9 +49,10 @@ ...@@ -49,9 +49,10 @@
= icon('clock-o') = icon('clock-o')
= issue.milestone.title = issue.milestone.title
- if issue.due_date - if issue.due_date
&nbsp; %span{class: "#{'cred' if issue.overdue?}"}
= icon('calendar') &nbsp;
= issue.due_date.to_s(:medium) = icon('calendar')
= issue.due_date.to_s(:medium)
- if issue.labels.any? - if issue.labels.any?
&nbsp; &nbsp;
- issue.labels.each do |label| - 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