Commit 2753cea7 authored by Andrey Kumanyaev's avatar Andrey Kumanyaev

Add variable form in user section

parent 25c57637
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
.span3 .span3
= render 'people_filter' = render 'people_filter'
.span9 .span9
- if @project && can?(current_user, :manage_group, @group) - if can?(current_user, :manage_group, @group)
= render "new_member" = render (@project ? "new_member" : "new_group_member")
.ui-box .ui-box
%h5 %h5
Team Team
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
%span.cgray= user.email %span.cgray= user.email
- if @group.owner == user - if @group.owner == user
%span.btn.btn-small.disabled.right Group Owner %span.btn.btn-small.disabled.right Group Owner
= render "new_group_member"
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