diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /app/views/shared/_prometheus_configuration_banner.html.haml | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'app/views/shared/_prometheus_configuration_banner.html.haml')
-rw-r--r-- | app/views/shared/_prometheus_configuration_banner.html.haml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/shared/_prometheus_configuration_banner.html.haml b/app/views/shared/_prometheus_configuration_banner.html.haml new file mode 100644 index 00000000000..2d948cf28a6 --- /dev/null +++ b/app/views/shared/_prometheus_configuration_banner.html.haml @@ -0,0 +1,27 @@ +- header_tag = local_assigns.fetch(:header_tag) +- info_well_classes = local_assigns.fetch(:info_well_classes, '') +- integration = local_assigns.fetch(:integration) + += content_tag(header_tag, s_('PrometheusService|Prometheus cluster integration')) + +- if integration.manual_configuration? + .info-well{ class: info_well_classes } + = s_('PrometheusService|To use a Prometheus installed on a cluster, deactivate the manual configuration.') +- else + .container-fluid + .row + - if integration.prometheus_available? + .col-sm-2 + .svg-container + = image_tag 'illustrations/monitoring/getting_started.svg' + .col-sm-10 + %p.text-success.gl-mt-3 + = s_('PrometheusService|You have a cluster with the Prometheus integration enabled.') + = link_to s_('PrometheusService|Manage clusters'), project_clusters_path(project), class: 'btn gl-button btn-default' + - else + .col-sm-2 + = image_tag 'illustrations/monitoring/loading.svg' + .col-sm-10 + %p.gl-mt-3 + = s_('PrometheusService|Configure GitLab to query a Prometheus installed in one of your clusters.') + = link_to s_('PrometheusService|Manage clusters'), project_clusters_path(project), class: 'btn gl-button btn-confirm' |