Welcome to mirror list, hosted at ThFree Co, Russian Federation.

error.html.haml « forks « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0c15796b667ec588b3c0d9afd393e9676234ec3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- page_title _("Fork project")
- if @forked_project && !@forked_project.saved?
  .gl-alert.gl-alert-danger.gl-mt-5
    = sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon')
    %h4.gl-alert-title
      = sprite_icon('fork')
      = _("Fork Error!")
    .gl-alert-body
      %p
        = _("You tried to fork %{link_to_the_project} but it failed for the following reason:").html_safe % { link_to_the_project: link_to_project(@project) }

      - 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

      .gl-alert-actions
        = link_to _("Try to fork again"), new_project_fork_path(@project), title: _("Fork"), class: "btn gl-alert-action btn-info btn-md gl-button"