debian-mirror-gitlab/app/views/projects/forks/error.html.haml

23 lines
911 B
Text
Raw Normal View History

2019-07-31 22:56:46 +05:30
- page_title _("Fork project")
2015-04-26 12:48:37 +05:30
- if @forked_project && !@forked_project.saved?
2020-11-24 15:15:51 +05:30
.gl-alert.gl-alert-danger.gl-mt-5
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon')
%h4.gl-alert-title
2020-10-24 23:57:45 +05:30
= sprite_icon('fork')
2019-07-31 22:56:46 +05:30
= _("Fork Error!")
2020-11-24 15:15:51 +05:30
.gl-alert-body
2015-04-26 12:48:37 +05:30
%p
2020-11-24 15:15:51 +05:30
= _("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
2015-04-26 12:48:37 +05:30
2020-11-24 15:15:51 +05:30
.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"