summaryrefslogtreecommitdiff
path: root/app/views/projects/forks/error.html.haml
blob: 98d81308407c37277c6193d3521d98c18a7e5805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- page_title "Fork project"
- 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
        –
        - error = @forked_project.errors.full_messages.first
        - if error.include?("already been taken")
          Name has already been taken
        - else
          = error

    %p
      = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork", class: "btn" do
        %i.fa.fa-code-fork
        Try to Fork again