summaryrefslogtreecommitdiff
path: root/app/views/dashboard
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-05-03 10:30:33 -0500
committerJacob Schatz <jschatz1@gmail.com>2016-05-25 08:15:20 -0400
commit2c8000e302c7c5382caaa235ece133ade687c7ac (patch)
treed70b2ca0731975bbe19a9c7db9d5202ff0473ee6 /app/views/dashboard
parent7586807fc3e01d641dfb1211e7c0a6a92e5e68c0 (diff)
downloadgitlab-ce-2c8000e302c7c5382caaa235ece133ade687c7ac.tar.gz
Move conditional to a method
Diffstat (limited to 'app/views/dashboard')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml
index 45dbc234cbc..f544f87b581 100644
--- a/app/views/dashboard/todos/_todo.html.haml
+++ b/app/views/dashboard/todos/_todo.html.haml
@@ -3,7 +3,7 @@
= image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
.todo-title.title
- unless todo.build_failed?
- - if (todo.target.is_a?(MergeRequest) || todo.target.is_a?(Issue)) && ['closed', 'merged'].include?(todo.target.state)
+ - if show_todo_state?(todo)
%span.target-status
= todo_target_state_pill(todo)