diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-06-02 15:56:50 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-06-05 13:07:13 +0300 |
commit | 4ae67fcaefe7ca66e06933a18368e592d8ebc260 (patch) | |
tree | 7d3b171dae75ab143cc2111caa6959cd832e6c7d /app/services | |
parent | 1f78aeba40f76f6a2f6b44327367282838301a3f (diff) |
Show warning when a comment will add 10 or more people to the discussion.
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/participants_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/participants_service.rb b/app/services/projects/participants_service.rb index b91590a1a90..0004a399f47 100644 --- a/app/services/projects/participants_service.rb +++ b/app/services/projects/participants_service.rb @@ -38,13 +38,13 @@ module Projects def groups current_user.authorized_groups.sort_by(&:path).map do |group| count = group.users.count - { username: group.path, name: "#{group.name} (#{count})" } + { username: group.path, name: group.name, count: count } end end def all_members count = project.team.members.flatten.count - [{ username: "all", name: "All Project and Group Members (#{count})" }] + [{ username: "all", name: "All Project and Group Members", count: count }] end end end |