Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-28 21:54:13 +0300
committerJacob Schatz <jschatz1@gmail.com>2016-05-25 15:15:20 +0300
commit33be8181ac7a7885ccf5ea4850a87908d974ac28 (patch)
tree9b1b70a89720485b39019d11a6ddecde489a4630 /app/helpers/todos_helper.rb
parent5fb1de3426d187d2e8d4fe01635a19ac8062e3d2 (diff)
Add target status
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r--app/helpers/todos_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index 81b9b5d7052..5d020e7f241 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -37,6 +37,15 @@ module TodosHelper
end
end
+ def todo_target_state_pill(todo)
+ klass = 'status-box '
+ klass << "status-box-#{todo.target.state.dasherize}"
+
+ content_tag(:span, nil, class: klass) {
+ todo.target.state.capitalize
+ }
+ end
+
def todos_filter_params
{
state: params[:state],