Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-11-06 06:57:25 +0300
committerThong Kuah <tkuah@gitlab.com>2018-11-08 13:26:04 +0300
commita90320f792f9faefa3d5198e17b94f3acec7c6a5 (patch)
treec0c9993756a2aaa859112f251101c9c10d06bae7 /app/views
parentdbb2334d4aec6d56d82691406090cbcefc6a27da (diff)
Add active and connection disabled badges to clusters
Diffstat (limited to 'app/views')
-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