Skip to content
Snippets Groups Projects
Commit 5209689d authored by Pawel Chojnacki's avatar Pawel Chojnacki
Browse files

Avoid unless/else

parent 8cb105cf
No related branches found
No related tags found
No related merge requests found
%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?
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment