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
eff9a857
Commit
eff9a857
authored
Jan 06, 2022
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Kubernetes Agent Link on Project page
This commit fixes the link button. Changelog: fixed
parent
bd27daaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/presenters/project_presenter.rb
app/presenters/project_presenter.rb
+1
-1
spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb
...es/projects/show/user_sees_setup_shortcut_buttons_spec.rb
+1
-1
spec/presenters/project_presenter_spec.rb
spec/presenters/project_presenter_spec.rb
+1
-1
No files found.
app/presenters/project_presenter.rb
View file @
eff9a857
...
...
@@ -364,7 +364,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
if
clusters
.
empty?
AnchorData
.
new
(
false
,
statistic_icon
+
_
(
'Add Kubernetes cluster'
),
new_project_cluster
_path
(
project
))
project_clusters
_path
(
project
))
else
cluster_link
=
clusters
.
count
==
1
?
project_cluster_path
(
project
,
clusters
.
first
)
:
project_clusters_path
(
project
)
...
...
spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb
View file @
eff9a857
...
...
@@ -316,7 +316,7 @@ RSpec.describe 'Projects > Show > User sees setup shortcut buttons' do
visit
project_path
(
project
)
page
.
within
(
'.project-buttons'
)
do
expect
(
page
).
to
have_link
(
'Add Kubernetes cluster'
,
href:
new_project_cluster
_path
(
project
))
expect
(
page
).
to
have_link
(
'Add Kubernetes cluster'
,
href:
project_clusters
_path
(
project
))
end
end
...
...
spec/presenters/project_presenter_spec.rb
View file @
eff9a857
...
...
@@ -554,7 +554,7 @@ RSpec.describe ProjectPresenter do
expect
(
presenter
.
kubernetes_cluster_anchor_data
).
to
have_attributes
(
is_link:
false
,
label:
a_string_including
(
'Add Kubernetes cluster'
),
link:
presenter
.
new_project_cluster
_path
(
project
)
link:
presenter
.
project_clusters
_path
(
project
)
)
end
end
...
...
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