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
4004ab30
Commit
4004ab30
authored
Mar 17, 2021
by
Yogi
Committed by
Andrew Fontaine
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move from btn-success to btn-confirm in projects/forks directory
parent
02ee1271
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/forks/_fork_button.html.haml
app/views/projects/forks/_fork_button.html.haml
+1
-1
app/views/projects/forks/index.html.haml
app/views/projects/forks/index.html.haml
+2
-2
changelogs/unreleased/btn-confirm-project-deploy-forks.yml
changelogs/unreleased/btn-confirm-project-deploy-forks.yml
+5
-0
No files found.
app/views/projects/forks/_fork_button.html.haml
View file @
4004ab30
...
@@ -17,4 +17,4 @@
...
@@ -17,4 +17,4 @@
=
link_to
_
(
"Select"
),
project_forks_path
(
@project
,
namespace_key:
namespace
.
id
),
=
link_to
_
(
"Select"
),
project_forks_path
(
@project
,
namespace_key:
namespace
.
id
),
data:
{
qa_selector:
'fork_namespace_button'
,
qa_name:
namespace
.
human_name
},
data:
{
qa_selector:
'fork_namespace_button'
,
qa_name:
namespace
.
human_name
},
method:
"POST"
,
method:
"POST"
,
class:
[
"btn gl-button btn-
success
"
,
(
"disabled"
unless
can_create_project
)]
class:
[
"btn gl-button btn-
confirm
"
,
(
"disabled"
unless
can_create_project
)]
app/views/projects/forks/index.html.haml
View file @
4004ab30
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
-
if
current_user
&&
can?
(
current_user
,
:fork_project
,
@project
)
-
if
current_user
&&
can?
(
current_user
,
:fork_project
,
@project
)
-
if
current_user
.
already_forked?
(
@project
)
&&
current_user
.
manageable_namespaces
.
size
<
2
-
if
current_user
.
already_forked?
(
@project
)
&&
current_user
.
manageable_namespaces
.
size
<
2
=
link_to
namespace_project_path
(
current_user
,
current_user
.
fork_of
(
@project
)),
title:
_
(
'Go to your fork'
),
class:
'btn gl-button btn-
success
'
do
=
link_to
namespace_project_path
(
current_user
,
current_user
.
fork_of
(
@project
)),
title:
_
(
'Go to your fork'
),
class:
'btn gl-button btn-
confirm
'
do
=
sprite_icon
(
'fork'
,
size:
12
)
=
sprite_icon
(
'fork'
,
size:
12
)
%span
=
_
(
'Fork'
)
%span
=
_
(
'Fork'
)
-
else
-
else
=
link_to
new_project_fork_path
(
@project
),
title:
_
(
"Fork project"
),
class:
'btn gl-button btn-
success
'
do
=
link_to
new_project_fork_path
(
@project
),
title:
_
(
"Fork project"
),
class:
'btn gl-button btn-
confirm
'
do
=
sprite_icon
(
'fork'
,
size:
12
)
=
sprite_icon
(
'fork'
,
size:
12
)
%span
=
_
(
'Fork'
)
%span
=
_
(
'Fork'
)
...
...
changelogs/unreleased/btn-confirm-project-deploy-forks.yml
0 → 100644
View file @
4004ab30
---
title
:
Move from btn-success to btn-confirm in forks directory
merge_request
:
56333
author
:
Yogi (@yo)
type
:
changed
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