summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/_cluster_list.html.haml
blob: 9627d9401269c2060ee122d36f85362b1b1905a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- if clusters.empty?
  = render 'empty_state'
- else
  .top-area.adjust
    .gl-display-block.gl-text-right.gl-my-4.gl-w-full
      - if clusterable.can_add_cluster?
        = link_to s_('ClusterIntegration|Connect cluster with certificate'), clusterable.new_path, class: 'btn gl-button btn-success js-add-cluster gl-py-2', qa_selector: :integrate_kubernetes_cluster_button
      - else
        %span.btn.gl-button.btn-success.js-add-cluster.disabled.gl-py-2
          = s_("ClusterIntegration|Connect cluster with certificate")

  #js-clusters-list-app{ data: js_clusters_list_data(clusterable.index_path(format: :json)) }