18967d6894
- Moves toggle button to a shared location - Adds tests for toggle button - Transforms Clusters class into function - Improves UX
24 lines
929 B
Text
24 lines
929 B
Text
- breadcrumb_title "Clusters"
|
|
- page_title "Clusters"
|
|
|
|
.clusters-container
|
|
- if @clusters.empty? && @scope == 'all'
|
|
= render "empty_state"
|
|
- elsif @clusters.empty? && @scope != 'all'
|
|
= render "tabs"
|
|
.prepend-top-20.text-center
|
|
= s_("ClusterIntegration|There are no clusters to show")
|
|
- else
|
|
= render "tabs"
|
|
.ci-table.js-clusters-list
|
|
.gl-responsive-table-row.table-row-header{ role: "row" }
|
|
.table-section.section-30{ role: "rowheader" }
|
|
= s_("ClusterIntegration|Cluster")
|
|
.table-section.section-30{ role: "rowheader" }
|
|
= s_("ClusterIntegration|Environment pattern")
|
|
.table-section.section-30{ role: "rowheader" }
|
|
= s_("ClusterIntegration|Project namespace")
|
|
.table-section.section-10{ role: "rowheader" }
|
|
- @clusters.each do |cluster|
|
|
= render "cluster", cluster: cluster
|
|
= paginate @clusters, theme: "gitlab"
|