Rename sidebar metrics path

This commit is contained in:
Tiago Botelho 2018-06-25 11:58:47 +01:00 committed by Jose
parent 1002f1c37b
commit c4df74d1e1
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@ module EnvironmentsHelper
} }
end end
def metrics_path(project, environment) def operations_metrics_path(project, environment)
return metrics_project_environment_path(project, environment) if environment return environment_metrics_path(environment) if environment
empty_project_environments_path(project) empty_project_environments_path(project)
end end

View file

@ -211,7 +211,7 @@
- if project_nav_tab? :environments - if project_nav_tab? :environments
= nav_link(controller: [:environments, :metrics]) do = 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 %span
= _('Metrics') = _('Metrics')