From 2753cea75a89ef461a1df1c82c09d093ec0bc1bb Mon Sep 17 00:00:00 2001 From: Andrey Kumanyaev Date: Wed, 26 Dec 2012 03:05:38 +0400 Subject: [PATCH] Add variable form in user section --- app/views/groups/people.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/groups/people.html.haml b/app/views/groups/people.html.haml index 6965f835..091f6875 100644 --- a/app/views/groups/people.html.haml +++ b/app/views/groups/people.html.haml @@ -2,8 +2,8 @@ .span3 = render 'people_filter' .span9 - - if @project && can?(current_user, :manage_group, @group) - = render "new_member" + - if can?(current_user, :manage_group, @group) + = render (@project ? "new_member" : "new_group_member") .ui-box %h5 Team @@ -17,4 +17,4 @@ %span.cgray= user.email - if @group.owner == user %span.btn.btn-small.disabled.right Group Owner - = render "new_group_member" +