Rename sidebar metrics path
This commit is contained in:
parent
1002f1c37b
commit
c4df74d1e1
2 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue