mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
Don't show the Todo count if there aren't any Todos.
When there are 0 Todos, the Todos icon still had the blue badge with a "0" in it, which made me think I had a new Todo left. This makes it less annoying. Follow-up on !4077.
This commit is contained in:
@@ -27,8 +27,9 @@
|
||||
%li
|
||||
= link_to dashboard_todos_path, title: 'Todos', data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
|
||||
= icon('bell fw')
|
||||
%span.badge.todos-pending-count
|
||||
= todos_pending_count
|
||||
- unless todos_pending_count == 0
|
||||
%span.badge.todos-pending-count
|
||||
= todos_pending_count
|
||||
- if current_user.can_create_project?
|
||||
%li
|
||||
= link_to new_project_path, title: 'New project', data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
|
||||
|
||||
Reference in New Issue
Block a user