2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Fork project"
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @forked_project && !@forked_project.saved?
|
|
|
|
.alert.alert-danger.alert-block
|
|
|
|
%h4
|
|
|
|
%i.fa.fa-code-fork
|
|
|
|
Fork Error!
|
|
|
|
%p
|
|
|
|
You tried to fork
|
|
|
|
= link_to_project @project
|
|
|
|
but it failed for the following reason:
|
|
|
|
|
|
|
|
|
|
|
|
- if @forked_project && @forked_project.errors.any?
|
|
|
|
%p
|
|
|
|
–
|
2017-08-17 22:00:37 +05:30
|
|
|
- error = @forked_project.errors.full_messages.first
|
|
|
|
- if error.include?("already been taken")
|
|
|
|
Name has already been taken
|
|
|
|
- else
|
|
|
|
= error
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
%p
|
|
|
|
= link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork", class: "btn" do
|
|
|
|
%i.fa.fa-code-fork
|
2017-08-17 22:00:37 +05:30
|
|
|
Try to fork again
|