Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3955a3d8
Commit
3955a3d8
authored
Jul 09, 2021
by
Marvin Karegyeya
Committed by
Brandon Labuschagne
Jul 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update markup in forks/error.html.haml
parent
2fca139b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
app/views/projects/forks/error.html.haml
app/views/projects/forks/error.html.haml
+8
-7
No files found.
app/views/projects/forks/error.html.haml
View file @
3955a3d8
-
page_title
_
(
"Fork project"
)
-
page_title
_
(
"Fork project"
)
-
if
@forked_project
&&
!
@forked_project
.
saved?
-
if
@forked_project
&&
!
@forked_project
.
saved?
.gl-alert.gl-alert-danger.gl-mt-5
=
render
'shared/global_alert'
,
=
sprite_icon
(
'error'
,
size:
16
,
css_class:
'gl-icon gl-alert-icon'
)
title:
_
(
'Fork Error!'
),
%h4
.gl-alert-title
variant: :danger
,
=
sprite_icon
(
'fork'
)
alert_class:
'gl-mt-5'
,
=
_
(
"Fork Error!"
)
is_contained:
true
,
dismissible:
false
do
.gl-alert-body
.gl-alert-body
%p
%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
)
}
=
_
(
"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
)
}
...
@@ -14,9 +15,9 @@
...
@@ -14,9 +15,9 @@
–
–
-
error
=
@forked_project
.
errors
.
full_messages
.
first
-
error
=
@forked_project
.
errors
.
full_messages
.
first
-
if
error
.
include?
(
"already been taken"
)
-
if
error
.
include?
(
"already been taken"
)
=
_
(
"Name has already been taken"
)
=
_
(
'Name has already been taken'
)
-
else
-
else
=
error
=
error
.gl-alert-actions
.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"
=
link_to
_
(
'Try to fork again'
),
new_project_fork_path
(
@project
),
title:
_
(
"Fork"
),
class:
"btn gl-alert-action btn-info btn-md gl-button"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment