diff options
author | Nur Rony <pro.nmrony@gmail.com> | 2017-02-22 13:19:09 +0600 |
---|---|---|
committer | Nur Rony <pro.nmrony@gmail.com> | 2017-02-22 13:28:39 +0600 |
commit | e6c0c334e9596a90c21a614de047e4a3652fb763 (patch) | |
tree | bfcf9350129952422f03d449b9338b653c76a9f9 /app/controllers/dashboard/todos_controller.rb | |
parent | 5a84b5fd7c5e281de7fad55a308ff35da64f50ca (diff) | |
download | gitlab-ce-e6c0c334e9596a90c21a614de047e4a3652fb763.tar.gz |
fixes delimiter removes when todo marked as done
Diffstat (limited to 'app/controllers/dashboard/todos_controller.rb')
-rw-r--r-- | app/controllers/dashboard/todos_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb index ee2358b986d..5848ca62777 100644 --- a/app/controllers/dashboard/todos_controller.rb +++ b/app/controllers/dashboard/todos_controller.rb @@ -1,4 +1,6 @@ class Dashboard::TodosController < Dashboard::ApplicationController + include ActionView::Helpers::NumberHelper + before_action :find_todos, only: [:index, :destroy_all] def index @@ -48,8 +50,8 @@ class Dashboard::TodosController < Dashboard::ApplicationController def todos_counts { - count: current_user.todos_pending_count, - done_count: current_user.todos_done_count + count: number_with_delimiter(current_user.todos_pending_count), + done_count: number_with_delimiter(current_user.todos_done_count) } end end |