summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-07-11 19:48:35 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-07-11 19:48:35 -0500
commitabd3b11da3f0af96e8e04781bf50d44b9c832eee (patch)
treea61ca730c4c889512a18923a14bf1f87a8dce7b1
parent0452e0a57e24fdd65f559cc1a8629892714adc7a (diff)
downloadgitlab-ce-rs-delimit-done-todos.tar.gz
Use number_with_delimiter for Todos pending/done tab countsrs-delimit-done-todos
-rw-r--r--app/views/dashboard/todos/index.html.haml4
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?)