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

23 lines
865 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?
2021-09-30 23:02:18 +05:30
= render 'shared/global_alert',
title: _('Fork Error!'),
variant: :danger,
alert_class: 'gl-mt-5',
dismissible: false do
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")
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
2020-11-24 15:15:51 +05:30
.gl-alert-actions
2021-09-30 23:02:18 +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"