summaryrefslogtreecommitdiff
path: root/app/views/projects/clusters/_cluster.html.haml
blob: 18ca01d2d493db8ef4207eeabdf6062e4b436caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.gl-responsive-table-row
  .table-section.section-30
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Cluster")
    .table-mobile-content
      = link_to cluster.name, namespace_project_cluster_path(@project.namespace, @project, cluster)
  .table-section.section-30
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Environment pattern")
    .table-mobile-content= cluster.environment_scope
  .table-section.section-30
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Project namespace")
    .table-mobile-content= cluster.platform_kubernetes&.actual_namespace
  .table-section.section-10
    .table-mobile-header{ role: "rowheader" }
    .table-mobile-content
      %button{ type: "button",
        class: "js-toggle-cluster-list project-feature-toggle #{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
        "aria-label": s_("ClusterIntegration|Toggle Cluster"),
        disabled: !cluster.can_toggle_cluster?,
        data: { "enabled-text": s_("ClusterIntegration|Active"),
          "disabled-text": s_("ClusterIntegration|Inactive"),
          endpoint: namespace_project_cluster_path(@project.namespace, @project, cluster, format: :json) } }
        = icon("spinner spin", class: "loading-icon")