mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Remove team factories and few links
This commit is contained in:
@@ -6,7 +6,6 @@ class TeamMembersController < ProjectResourceController
|
||||
def index
|
||||
@group = @project.group
|
||||
@users_projects = @project.users_projects.order('project_access DESC')
|
||||
@assigned_teams = @project.user_team_project_relationships
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
%span.pull-right
|
||||
= link_to import_project_team_members_path(@project), class: "btn btn-small grouped", title: "Import team from another project" do
|
||||
Import team from another project
|
||||
= link_to available_project_teams_path(@project), class: "btn btn-small grouped", title: "Assign project to team of users" do
|
||||
Assign project to Team of users
|
||||
= link_to new_project_team_member_path(@project), class: "btn btn-primary small grouped", title: "New Team Member" do
|
||||
New Team Member
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_team_project_relationships
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# project_id :integer
|
||||
# user_team_id :integer
|
||||
# greatest_access :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team_project_relationship do
|
||||
project
|
||||
user_team
|
||||
greatest_access { UsersProject::MASTER }
|
||||
end
|
||||
end
|
||||
@@ -1,23 +0,0 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_team_user_relationships
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer
|
||||
# user_team_id :integer
|
||||
# group_admin :boolean
|
||||
# permission :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team_user_relationship do
|
||||
user
|
||||
user_team
|
||||
group_admin false
|
||||
permission { UsersProject::MASTER }
|
||||
end
|
||||
end
|
||||
@@ -1,23 +0,0 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_teams
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# path :string(255)
|
||||
# owner_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# description :string(255) default(""), not null
|
||||
#
|
||||
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team do
|
||||
sequence(:name) { |n| "team#{n}" }
|
||||
sequence(:description) { |n| "team_description#{n}" }
|
||||
path { name.downcase.gsub(/\s/, '_') }
|
||||
owner
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user