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

21 lines
731 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?
.alert.alert-danger.alert-block
%h4
2018-03-17 18:26:18 +05:30
= sprite_icon('fork', size: 16)
2019-07-31 22:56:46 +05:30
= _("Fork Error!")
2015-04-26 12:48:37 +05:30
%p
2019-07-31 22:56:46 +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) }
2015-04-26 12:48:37 +05:30
- if @forked_project && @forked_project.errors.any?
%p
–
2017-08-17 22:00:37 +05:30
- error = @forked_project.errors.full_messages.first
- if error.include?("already been taken")
2019-07-31 22:56:46 +05:30
= _("Name has already been taken")
2017-08-17 22:00:37 +05:30
- else
= error
2015-04-26 12:48:37 +05:30
%p
2019-07-31 22:56:46 +05:30
= link_to _("Try to fork again"), new_project_fork_path(@project), title: _("Fork"), class: "btn"