2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Fork project"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
Fork project
|
|
|
|
%p
|
|
|
|
A fork is a copy of a project.
|
2015-10-24 18:46:33 +05:30
|
|
|
%br
|
2016-08-24 12:49:21 +05:30
|
|
|
Forking a repository allows you to make changes without affecting the original project.
|
|
|
|
.col-lg-9
|
|
|
|
.fork-namespaces
|
|
|
|
- if @namespaces.present?
|
|
|
|
%label.label-light
|
|
|
|
%span
|
|
|
|
Click to fork the project to a user or group
|
|
|
|
- @namespaces.in_groups_of(6, false) do |group|
|
|
|
|
.row
|
|
|
|
- group.each do |namespace|
|
|
|
|
- avatar = namespace_icon(namespace, 100)
|
|
|
|
- if fork = namespace.find_fork_of(@project)
|
|
|
|
.fork-thumbnail.forked
|
|
|
|
= link_to project_path(fork) do
|
|
|
|
- if /no_((\w*)_)*avatar/.match(avatar)
|
|
|
|
.no-avatar
|
|
|
|
= icon 'question'
|
|
|
|
- else
|
|
|
|
= image_tag avatar
|
|
|
|
.caption
|
|
|
|
= namespace.human_name
|
|
|
|
- else
|
|
|
|
.fork-thumbnail
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to project_forks_path(@project, namespace_key: namespace.id), method: "POST" do
|
2016-08-24 12:49:21 +05:30
|
|
|
- if /no_((\w*)_)*avatar/.match(avatar)
|
|
|
|
.no-avatar
|
|
|
|
= icon 'question'
|
|
|
|
- else
|
|
|
|
= image_tag avatar
|
|
|
|
.caption
|
|
|
|
= namespace.human_name
|
|
|
|
- else
|
|
|
|
%label.label-light
|
|
|
|
%span
|
|
|
|
No available namespaces to fork the project.
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
You must have permission to create a project in a namespace before forking.
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
.save-project-loader.hide
|
|
|
|
.center
|
|
|
|
%h2
|
|
|
|
%i.fa.fa-spinner.fa-spin
|
|
|
|
Forking repository
|
|
|
|
%p Please wait a moment, this page will automatically refresh when ready.
|