Skip to content
Snippets Groups Projects
Commit ce1b742b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Group: new link on dashboard if admin. Fixed people count

parent 26045d7a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,7 +52,7 @@ class GroupsController < ApplicationController
end
 
def people
@users = group.users
@users = group.users.all
end
 
protected
Loading
Loading
Loading
Loading
@@ -22,6 +22,10 @@ module Account
projects_limit > my_own_projects.count
end
 
def can_create_group?
is_admin?
end
def last_activity_project
projects.first
end
Loading
Loading
Loading
Loading
@@ -3,6 +3,11 @@
Groups
%small
(#{groups.count})
- if current_user.can_create_group?
%span.right
= link_to new_admin_group_path, class: "btn very_small info" do
%i.icon-plus
New Group
%ul.unstyled
- groups.each do |group|
%li.wll
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
%h5
People
%small
(#{@users.count})
(#{@users.size})
%ul.unstyled
- @users.each do |user|
%li.wll
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment