Read about our upcoming Code of Conduct on this issue

This instance was upgraded to Heptapod 0.28.0 today

error.html.haml 707 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- page_title "Fork project"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- 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
        –
16
17
18
19
20
        - error = @forked_project.errors.full_messages.first
        - if error.include?("already been taken")
          Name has already been taken
        - else
          = error
21
22

    %p
Vinnie Okada's avatar
Vinnie Okada committed
23
      = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork", class: "btn" do
24
25
        %i.fa.fa-code-fork
        Try to Fork again