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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
884 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?
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(title: _('Fork Error!'),
2021-09-30 23:02:18 +05:30
variant: :danger,
2022-07-23 23:45:48 +05:30
alert_options: { class: 'gl-mt-5' },
2022-07-16 23:28:13 +05:30
dismissible: false) do |c|
2023-07-09 08:55:56 +05:30
- c.with_body do
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")
2021-09-30 23:02:18 +05:30
= _('Name has already been taken')
2020-11-24 15:15:51 +05:30
- else
= error
2015-04-26 12:48:37 +05:30
2023-07-09 08:55:56 +05:30
- c.with_actions do
2022-07-16 23:28:13 +05:30
= link_to _('Try to fork again'), new_project_fork_path(@project), title: _("Fork"), class: "btn gl-alert-action btn-info btn-md gl-button"