Commit 0533a7d8 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'rs-delimit-done-todos' into 'master'

Use number_with_delimiter for Todos pending/done tab counts

See merge request !5199
parents 1d958b03 0ec69815
......@@ -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?)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment