@* * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. *@ @(clusters: IndexedSeq[kafka.manager.model.ClusterConfig])(implicit af: features.ApplicationFeatures, messages: play.api.i18n.Messages, request:RequestHeader)
Active | Operations | Version |
---|---|---|
@if(cluster.enabled) { @cluster.name } else { @cluster.name } |
@features.app(features.KMClusterManagerFeature) {
@if(cluster.enabled) {
Modify
@b4.vertical.form(routes.Cluster.handleUpdateCluster(cluster.name).copy(url=routes.Cluster.handleUpdateCluster(cluster.name).relative)) { implicit fc =>
@b4.submit('class -> "btn btn-outline-warning"){ Disable }
}
} else {
@b4.vertical.form(routes.Cluster.handleUpdateCluster(cluster.name)) { implicit fc =>
@b4.submit('class -> "btn btn-outline-success"){ Enable }
}
@b4.vertical.form(routes.Cluster.handleUpdateCluster(cluster.name)) { implicit fc =>
@b4.submit('class -> "btn btn-outline-danger"){ Delete }
}
}
}
|
@cluster.version.toString |