2017-11-27 12:18:55 -05:00
|
|
|
.gl-responsive-table-row
|
|
|
|
.table-section.section-30
|
2018-01-29 14:49:00 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Kubernetes cluster")
|
2017-11-27 12:18:55 -05:00
|
|
|
.table-mobile-content
|
|
|
|
= link_to cluster.name, namespace_project_cluster_path(@project.namespace, @project, cluster)
|
|
|
|
.table-section.section-30
|
2017-12-20 12:19:34 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Environment scope")
|
2017-11-27 12:18:55 -05:00
|
|
|
.table-mobile-content= cluster.environment_scope
|
|
|
|
.table-section.section-30
|
2017-11-28 08:16:44 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Project namespace")
|
2017-12-03 17:01:18 -05:00
|
|
|
.table-mobile-content= cluster.platform_kubernetes&.actual_namespace
|
2017-11-27 12:18:55 -05:00
|
|
|
.table-section.section-10
|
2017-11-28 08:16:44 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }
|
2017-11-27 12:18:55 -05:00
|
|
|
.table-mobile-content
|
2018-01-24 16:54:33 -05:00
|
|
|
%button.js-project-feature-toggle.project-feature-toggle{ type: "button",
|
|
|
|
class: "#{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
|
2018-01-29 14:49:00 -05:00
|
|
|
"aria-label": s_("ClusterIntegration|Toggle Kubernetes Cluster"),
|
2017-12-05 11:09:04 -05:00
|
|
|
disabled: !cluster.can_toggle_cluster?,
|
2017-12-15 08:23:56 -05:00
|
|
|
data: { endpoint: namespace_project_cluster_path(@project.namespace, @project, cluster, format: :json) } }
|
2018-01-24 16:54:33 -05:00
|
|
|
%input.js-project-feature-toggle-input{ type: "hidden", value: cluster.enabled? }
|
2017-11-28 08:16:44 -05:00
|
|
|
= icon("spinner spin", class: "loading-icon")
|
2017-12-15 08:23:56 -05:00
|
|
|
%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')
|