diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-28 13:54:13 -0500 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-05-25 08:15:20 -0400 |
commit | 33be8181ac7a7885ccf5ea4850a87908d974ac28 (patch) | |
tree | 9b1b70a89720485b39019d11a6ddecde489a4630 /app/helpers/todos_helper.rb | |
parent | 5fb1de3426d187d2e8d4fe01635a19ac8062e3d2 (diff) | |
download | gitlab-ce-33be8181ac7a7885ccf5ea4850a87908d974ac28.tar.gz |
Add target status
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 9 |
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], |