From 68c730bb99a12b0ea8ac3d08f074dc66e7ac2dae Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Fri, 23 Dec 2016 12:23:04 -0600 Subject: Fixed rspec tests for the project members also fixed the index view (removed an extra tag ) --- app/views/projects/project_members/_index.html.haml | 6 +----- app/views/projects/project_members/_new_project_member.html.haml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'app/views/projects') diff --git a/app/views/projects/project_members/_index.html.haml b/app/views/projects/project_members/_index.html.haml index 6499569dde7..0208e6e4ae8 100644 --- a/app/views/projects/project_members/_index.html.haml +++ b/app/views/projects/project_members/_index.html.haml @@ -17,11 +17,7 @@ %h5.member.existing-title Existing users and groups - if @group_links.any? - = render 'groups', group_links: @group_links - - .append-bottom-default.clearfix - - if @group_links.any? - = render 'groups', group_links: @group_links + = render 'projects/project_members/groups', group_links: @group_links = render 'projects/project_members/team', members: @project_members = paginate @project_members, theme: "gitlab" diff --git a/app/views/projects/project_members/_new_project_member.html.haml b/app/views/projects/project_members/_new_project_member.html.haml index ca08b58873b..e922b56d3bc 100644 --- a/app/views/projects/project_members/_new_project_member.html.haml +++ b/app/views/projects/project_members/_new_project_member.html.haml @@ -1,4 +1,4 @@ -= form_for @project_member, as: :project_member, url: namespace_project_settings_members_path(@project.namespace, @project), html: { class: 'users-project-form' } do |f| += form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'users-project-form' } do |f| .row .col-md-5.col-lg-5 = users_select_tag(:user_ids, multiple: true, class: "input-clamp", scope: :all, email_user: true) -- cgit v1.2.1