diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-07-11 19:48:35 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-07-12 15:01:09 -0500 |
commit | 0ec69815868f77526bd5a2c060d22fbe272af9ea (patch) | |
tree | fb73b10947d4c54fb9b669482ba4b88cc9605f17 | |
parent | bd7d6124524e0a2222f7837b27857b363b34729f (diff) | |
download | gitlab-ce-0ec69815868f77526bd5a2c060d22fbe272af9ea.tar.gz |
Use number_with_delimiter for Todos pending/done tab counts
-rw-r--r-- | app/views/dashboard/todos/index.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/dashboard/todos/index.html.haml b/app/views/dashboard/todos/index.html.haml index fc42e5dcc66..4e340b6ec16 100644 --- a/app/views/dashboard/todos/index.html.haml +++ b/app/views/dashboard/todos/index.html.haml @@ -9,14 +9,14 @@ %span To do %span.badge - = todos_pending_count + = number_with_delimiter(todos_pending_count) - todo_done_active = ('active' if params[:state] == 'done') %li{class: "todos-done #{todo_done_active}"} = link_to todos_filter_path(state: 'done') do %span Done %span.badge - = todos_done_count + = number_with_delimiter(todos_done_count) .nav-controls - if @todos.any?(&:pending?) |