summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/index.html.haml
blob: 049010cadf4fd8d123c3feb0fd0645b45287b3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- breadcrumb_title _('Kubernetes')
- page_title _('Kubernetes Clusters')

= render_gcp_signup_offer

.clusters-container
  - if @clusters.empty?
    = render "empty_state"
  - else
    .top-area.adjust
      .nav-text
        = s_('ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project')
      = render 'clusters/clusters/buttons'

    - if @has_ancestor_clusters
      .bs-callout.bs-callout-info
        = s_('ClusterIntegration|Clusters are utilized by selecting the nearest ancestor with a matching environment scope. For example, project clusters will override group clusters.')
        %strong
          = link_to _('More information'), help_page_path('user/group/clusters/index', anchor: 'cluster-precedence')

    .clusters-table.js-clusters-list
      .gl-responsive-table-row.table-row-header{ role: "row" }
        .table-section.section-60{ role: "rowheader" }
          = s_("ClusterIntegration|Kubernetes cluster")
        .table-section.section-30{ role: "rowheader" }
          = s_("ClusterIntegration|Environment scope")
        .table-section.section-10{ role: "rowheader" }
      - @clusters.each do |cluster|
        = render "cluster", cluster: cluster.present(current_user: current_user)
    = paginate @clusters, theme: "gitlab"