BigW Consortium Gitlab

error.html.haml 663 Bytes
Newer Older
1
- page_title "Fork project"
2 3 4
- if @forked_project && !@forked_project.saved?
  .alert.alert-danger.alert-block
    %h4
5
      = sprite_icon('fork', size: 16)
6 7 8 9 10 11 12 13 14 15
      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
23
      = link_to new_project_fork_path(@project), title: "Fork", class: "btn" do
24
        Try to fork again