From 0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 24 Apr 2023 18:17:30 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/views/projects/runners/edit.html.haml | 2 +- app/views/projects/settings/integrations/_form.html.haml | 5 +++-- app/views/projects/settings/operations/show.html.haml | 9 +++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'app/views/projects') diff --git a/app/views/projects/runners/edit.html.haml b/app/views/projects/runners/edit.html.haml index ce56b160187..50c46402b53 100644 --- a/app/views/projects/runners/edit.html.haml +++ b/app/views/projects/runners/edit.html.haml @@ -4,7 +4,7 @@ - add_to_breadcrumbs "#{@runner.short_sha}", project_runner_path(@project, @runner) %h1.page-title.gl-font-size-h-display - = s_('Runners|Runner #%{runner_id}' % { runner_id: @runner.id }) + = s_('Runners|Runner #%{runner_id}') % { runner_id: @runner.id } = render 'shared/runners/runner_type_badge', runner: @runner = render 'shared/runners/runner_type_alert', runner: @runner diff --git a/app/views/projects/settings/integrations/_form.html.haml b/app/views/projects/settings/integrations/_form.html.haml index 97d90976f18..de5c63cc7fd 100644 --- a/app/views/projects/settings/integrations/_form.html.haml +++ b/app/views/projects/settings/integrations/_form.html.haml @@ -21,5 +21,6 @@ = render 'shared/integration_settings', integration: integration - if lookup_context.template_exists?('show', "shared/integrations/#{integration.to_param}", true) - %hr - = render "shared/integrations/#{integration.to_param}/show", integration: integration + - if !(integration.to_param == 'prometheus' && Feature.enabled?(:remove_monitor_metrics)) + %hr + = render "shared/integrations/#{integration.to_param}/show", integration: integration diff --git a/app/views/projects/settings/operations/show.html.haml b/app/views/projects/settings/operations/show.html.haml index 2aae408b88f..bfa637ee35e 100644 --- a/app/views/projects/settings/operations/show.html.haml +++ b/app/views/projects/settings/operations/show.html.haml @@ -1,9 +1,14 @@ - page_title _('Monitor Settings') - breadcrumb_title _('Monitor Settings') -= render 'projects/settings/operations/metrics_dashboard' +- if Feature.disabled?(:remove_monitor_metrics) + = render 'projects/settings/operations/metrics_dashboard' + = render 'projects/settings/operations/error_tracking' = render 'projects/settings/operations/alert_management' = render 'projects/settings/operations/incidents' -= render 'projects/settings/operations/grafana_integration' + +- if Feature.disabled?(:remove_monitor_metrics) + = render 'projects/settings/operations/grafana_integration' + = render_if_exists 'projects/settings/operations/status_page' -- cgit v1.2.1