2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Fork project"
|
2015-09-25 14:38:12 -04:00
|
|
|
- if @namespaces.present?
|
|
|
|
%h3.page-title Fork project
|
|
|
|
%p.lead
|
|
|
|
Click to fork the project to a user or group
|
|
|
|
%hr
|
2014-11-13 15:06:19 -05:00
|
|
|
|
2015-09-25 14:38:12 -04:00
|
|
|
.fork-namespaces
|
|
|
|
- @namespaces.in_groups_of(6, false) do |group|
|
|
|
|
.row
|
|
|
|
- group.each do |namespace|
|
|
|
|
.col-md-2.col-sm-3
|
|
|
|
- if fork = namespace.find_fork_of(@project)
|
|
|
|
.fork-thumbnail
|
|
|
|
= link_to project_path(fork), title: "Visit project fork", class: 'has_tooltip' do
|
|
|
|
= image_tag namespace_icon(namespace, 100)
|
|
|
|
.caption
|
|
|
|
%strong
|
|
|
|
= namespace.human_name
|
|
|
|
%div.text-primary
|
|
|
|
Already forked
|
2015-09-10 07:14:25 -04:00
|
|
|
|
2015-09-25 14:38:12 -04:00
|
|
|
- else
|
|
|
|
.fork-thumbnail
|
|
|
|
= link_to namespace_project_fork_path(@project.namespace, @project, namespace_key: namespace.id), title: "Fork here", method: "POST", class: 'has_tooltip' do
|
|
|
|
= image_tag namespace_icon(namespace, 100)
|
|
|
|
.caption
|
|
|
|
%strong
|
|
|
|
= namespace.human_name
|
2014-11-14 09:06:39 -05:00
|
|
|
|
2015-09-25 14:38:12 -04:00
|
|
|
%p.light
|
|
|
|
Fork is a copy of a project repository.
|
|
|
|
%br
|
|
|
|
Forking a repository allows you to do changes without affecting the original project.
|
|
|
|
- else
|
|
|
|
%h3 No available namespaces to fork the project
|
|
|
|
%p.slead
|
|
|
|
You must have permission to create a project in a namespace before forking.
|
2014-11-14 09:06:39 -05:00
|
|
|
|
|
|
|
.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.
|