summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 02:09:36 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 02:09:36 +0100
commit5209689d956c727f784481c86fe61355385371f5 (patch)
tree520f80017b516c335abf731e301997d8fc0b43c9
parent8cb105cf5fe0418c34cf4448304062edffe309dc (diff)
downloadgitlab-ce-5209689d956c727f784481c86fe61355385371f5.tar.gz
Avoid unless/else
-rw-r--r--app/views/projects/services/prometheus/_help.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/services/prometheus/_help.html.haml b/app/views/projects/services/prometheus/_help.html.haml
index 8ccdf02cd8f..5e320a252d8 100644
--- a/app/views/projects/services/prometheus/_help.html.haml
+++ b/app/views/projects/services/prometheus/_help.html.haml
@@ -1,7 +1,10 @@
%h4
= s_('PrometheusService|Auto configuration')
-- unless @service.manual_configuration?
+- if @service.manual_configuration?
+ .well
+ = s_('PrometheusService|To enable the installation of Prometheus on your clusters, deactivate the manual configuration below')
+- else
.container-fluid
.row
- if @service.prometheus_installed?
@@ -19,9 +22,6 @@
%p.prepend-top-default
= s_('PrometheusService|Automatically deploy and configure Prometheus on your clusters to monitor your project’s environments')
= link_to s_('PrometheusService|Install Prometheus on clusters'), project_clusters_path(@project), class: 'btn btn-success'
-- else
- .well
- = s_('PrometheusService|To enable the installation of Prometheus on your clusters, deactivate the manual configuration below')
%hr