Commit c4df74d1 authored by Tiago Botelho's avatar Tiago Botelho Committed by Jose

Rename sidebar metrics path

parent 1002f1c3
......@@ -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
......
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment