From c4df74d1e1ba53996c0d64a8f8ef91712bbecf75 Mon Sep 17 00:00:00 2001 From: Tiago Botelho Date: Mon, 25 Jun 2018 11:58:47 +0100 Subject: [PATCH] Rename sidebar metrics path --- app/helpers/environments_helper.rb | 4 ++-- app/views/layouts/nav/sidebar/_project.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/environments_helper.rb b/app/helpers/environments_helper.rb index 048175a5264..9276d9b6ac5 100644 --- a/app/helpers/environments_helper.rb +++ b/app/helpers/environments_helper.rb @@ -5,8 +5,8 @@ module EnvironmentsHelper } end - def metrics_path(project, environment) - return metrics_project_environment_path(project, environment) if environment + def operations_metrics_path(project, environment) + return environment_metrics_path(environment) if environment empty_project_environments_path(project) end diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index d90ce99da8d..4096a0f4c31 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -211,7 +211,7 @@ - if project_nav_tab? :environments = nav_link(controller: [:environments, :metrics]) do - = link_to metrics_path(@project, @available_environment), title: 'Metrics', class: 'shortcuts-environments' do + = link_to operations_metrics_path(@project, @available_environment), title: 'Metrics', class: 'shortcuts-environments' do %span = _('Metrics')