2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Fork project"
|
2014-11-13 15:06:19 -05:00
|
|
|
- if @forked_project && !@forked_project.saved?
|
|
|
|
.alert.alert-danger.alert-block
|
|
|
|
%h4
|
2017-12-06 13:38:35 -05:00
|
|
|
= sprite_icon('fork', size: 16)
|
2014-11-13 15:06:19 -05:00
|
|
|
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
|
|
|
|
–
|
2016-10-31 07:00:53 -04:00
|
|
|
- error = @forked_project.errors.full_messages.first
|
|
|
|
- if error.include?("already been taken")
|
|
|
|
Name has already been taken
|
|
|
|
- else
|
|
|
|
= error
|
2014-11-13 15:06:19 -05:00
|
|
|
|
|
|
|
%p
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to new_project_fork_path(@project), title: "Fork", class: "btn" do
|
2017-04-06 09:55:11 -04:00
|
|
|
Try to fork again
|