e08e405ac4
Now you can fork project into group or personal namespace. Also I moved fork logic from ProjectsController to own fork resource Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
20 lines
520 B
Text
20 lines
520 B
Text
- 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
|
|
–
|
|
= @forked_project.errors.full_messages.first
|
|
|
|
%p
|
|
= link_to new_project_fork_path(@project), title: "Fork", class: "btn" do
|
|
%i.fa.fa-code-fork
|
|
Try to Fork again
|