summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-11-05 21:57:25 -0600
committerThong Kuah <tkuah@gitlab.com>2018-11-08 23:26:04 +1300
commita90320f792f9faefa3d5198e17b94f3acec7c6a5 (patch)
treec0c9993756a2aaa859112f251101c9c10d06bae7
parentdbb2334d4aec6d56d82691406090cbcefc6a27da (diff)
downloadgitlab-ce-a90320f792f9faefa3d5198e17b94f3acec7c6a5.tar.gz
Add active and connection disabled badges to clusters
-rw-r--r--app/views/clusters/clusters/_cluster.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/clusters/clusters/_cluster.html.haml b/app/views/clusters/clusters/_cluster.html.haml
index a344a2eb15b..c1007ecdc20 100644
--- a/app/views/clusters/clusters/_cluster.html.haml
+++ b/app/views/clusters/clusters/_cluster.html.haml
@@ -4,6 +4,10 @@
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Kubernetes cluster")
.table-mobile-content
= link_to cluster.name, cluster.show_path
+ - if cluster.enabled?
+ %span.badge.badge-info Active
+ - else
+ %span.badge.badge-danger Connection disabled
.table-section.section-25
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Environment scope")
.table-mobile-content= cluster.environment_scope