2017-11-27 12:18:55 -05:00
|
|
|
.gl-responsive-table-row
|
|
|
|
.table-section.section-30
|
2017-11-28 08:16:44 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|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-11-28 08:16:44 -05:00
|
|
|
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Environment pattern")
|
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
|
2017-11-28 08:16:44 -05:00
|
|
|
%button{ type: "button",
|
2017-12-05 11:09:04 -05:00
|
|
|
class: "js-toggle-cluster-list project-feature-toggle #{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
|
2017-11-28 08:16:44 -05:00
|
|
|
"aria-label": s_("ClusterIntegration|Toggle Cluster"),
|
2017-12-05 11:09:04 -05:00
|
|
|
disabled: !cluster.can_toggle_cluster?,
|
2017-11-28 08:16:44 -05:00
|
|
|
data: { "enabled-text": s_("ClusterIntegration|Active"),
|
|
|
|
"disabled-text": s_("ClusterIntegration|Inactive"),
|
2017-11-27 12:18:55 -05:00
|
|
|
endpoint: namespace_project_cluster_path(@project.namespace, @project, cluster, format: :json) } }
|
2017-11-28 08:16:44 -05:00
|
|
|
= icon("spinner spin", class: "loading-icon")
|