diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-08 17:03:30 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-08 17:03:30 -0700 |
commit | 9b3e156e43b8a14e4eb294a47bda6a477c8573b0 (patch) | |
tree | 4e1de7b6835ac646b34761b5814e4afe250f3f8c /app/views/dashboard/groups | |
parent | 8b551ee31858db9c5da1ff5245359151d5b71211 (diff) | |
download | gitlab-ce-9b3e156e43b8a14e4eb294a47bda6a477c8573b0.tar.gz |
Move profile groups page to dashboard
Diffstat (limited to 'app/views/dashboard/groups')
-rw-r--r-- | app/views/dashboard/groups/index.html.haml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/views/dashboard/groups/index.html.haml b/app/views/dashboard/groups/index.html.haml new file mode 100644 index 00000000000..fd7bbb5500c --- /dev/null +++ b/app/views/dashboard/groups/index.html.haml @@ -0,0 +1,39 @@ +%h3.page-title + Group Membership + - if current_user.can_create_group? + %span.pull-right + = link_to new_group_path, class: "btn btn-new" do + %i.fa.fa-plus + New Group +%p.light + Group members have access to all group projects. +%hr +.panel.panel-default + .panel-heading + %strong Groups + (#{@user_groups.count}) + %ul.well-list + - @user_groups.each do |user_group| + - group = user_group.group + %li + .pull-right + - if can?(current_user, :manage_group, group) + = link_to edit_group_path(group), class: "btn-small btn btn-grouped" do + %i.fa.fa-cogs + Settings + + - if can?(current_user, :destroy, user_group) + = link_to leave_dashboard_group_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-small btn btn-grouped", title: 'Remove user from group' do + %i.fa.fa-sign-out + Leave + + = link_to group, class: 'group-name' do + %strong= group.name + + as + %strong #{user_group.human_access} + + %div.light + #{pluralize(group.projects.count, "project")}, #{pluralize(group.users.count, "user")} + += paginate @user_groups |