_cluster.html.haml 1.4 KB
Newer Older
Filipa Lacerda's avatar
Filipa Lacerda committed
1 2
.gl-responsive-table-row
  .table-section.section-30
3
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Cluster")
Filipa Lacerda's avatar
Filipa Lacerda committed
4 5 6
    .table-mobile-content
      = link_to cluster.name, namespace_project_cluster_path(@project.namespace, @project, cluster)
  .table-section.section-30
7
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Environment scope")
Filipa Lacerda's avatar
Filipa Lacerda committed
8 9
    .table-mobile-content= cluster.environment_scope
  .table-section.section-30
10
    .table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Project namespace")
Kamil Trzcinski's avatar
Kamil Trzcinski committed
11
    .table-mobile-content= cluster.platform_kubernetes&.actual_namespace
Filipa Lacerda's avatar
Filipa Lacerda committed
12
  .table-section.section-10
13
    .table-mobile-header{ role: "rowheader" }
Filipa Lacerda's avatar
Filipa Lacerda committed
14
    .table-mobile-content
15
      %button{ type: "button",
16
        class: "js-toggle-cluster-list project-feature-toggle #{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
17
        "aria-label": s_("ClusterIntegration|Toggle Cluster"),
18
        disabled: !cluster.can_toggle_cluster?,
19
        data: { endpoint: namespace_project_cluster_path(@project.namespace, @project, cluster, format: :json) } }
20
        = icon("spinner spin", class: "loading-icon")
21 22 23
        %span.toggle-icon
          = sprite_icon('status_success_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-checked')
          = sprite_icon('status_failed_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-unchecked')