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
85e4e70d
Commit
85e4e70d
authored
Nov 30, 2017
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Cluster index view @scope logic
parent
062f011d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/views/projects/clusters/index.html.haml
app/views/projects/clusters/index.html.haml
+7
-7
No files found.
app/views/projects/clusters/index.html.haml
View file @
85e4e70d
...
...
@@ -2,13 +2,7 @@
-
page_title
"Clusters"
.clusters-container
-
if
@clusters
.
empty?
&&
(
@scope
.
nil?
||
@scope
==
'all'
)
=
render
"empty_state"
-
elsif
@clusters
.
empty?
&&
(
!
@scope
.
nil?
||
@scope
!=
'all'
)
=
render
"tabs"
.prepend-top-20.text-center
=
s_
(
"ClusterIntegration|There are no clusters to show"
)
-
else
-
if
!
@clusters
.
empty?
=
render
"tabs"
.ci-table.js-clusters-list
.gl-responsive-table-row.table-row-header
{
role:
"row"
}
...
...
@@ -22,3 +16,9 @@
-
@clusters
.
each
do
|
cluster
|
=
render
"cluster"
,
cluster:
cluster
=
paginate
@clusters
,
theme:
"gitlab"
-
elsif
@scope
==
:all
=
render
"empty_state"
-
else
=
render
"tabs"
.prepend-top-20.text-center
=
s_
(
"ClusterIntegration|There are no clusters to show"
)
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