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
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 04:45:57 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 04:45:57 +0300
commit80d4c0675f5715d724be20d47cafa372524e3ed1 (patch)
treea7eb85470d83f374d2fa013f297fcfeeb0ab135f /app/views/projects/services
parent249c9a8cf63b5b36b86499720804a5180e640537 (diff)
Add test checking if prometheus integration is enabled after prometheus is installed
Diffstat (limited to 'app/views/projects/services')
-rw-r--r--app/views/projects/services/prometheus/_help.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/projects/services/prometheus/_help.html.haml b/app/views/projects/services/prometheus/_help.html.haml
new file mode 100644
index 00000000000..96a194b212e
--- /dev/null
+++ b/app/views/projects/services/prometheus/_help.html.haml
@@ -0,0 +1,10 @@
+.row.prepend-top-default.append-bottom-default
+ %p
+ - unless @service.manual_configuration?
+ - if @service.prometheus_installed?
+ = link_to 'Manage installed Prometheus', project_clusters_path(@project), class: 'btn btn-cancel'
+ - else
+ = link_to 'Install Prometheus', project_clusters_path(@project), class: 'btn btn-cancel'
+ - else
+ To automatically install prometheus disable manual configuration
+