diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-06-26 10:36:16 +0100 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-06-26 23:06:25 -0500 |
commit | 91463e52467d4b93d95693ac4eba1d5630ecdc98 (patch) | |
tree | dabe37b1c6a169d59e1611d17e0157cf0516e33b /app/views | |
parent | c4df74d1e1ba53996c0d64a8f8ef91712bbecf75 (diff) | |
download | gitlab-ce-91463e52467d4b93d95693ac4eba1d5630ecdc98.tar.gz |
Specify environment actions to distinguish between metrics and every other environment related actions
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/nav/sidebar/_project.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index 4096a0f4c31..a1a14aec5c6 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -204,18 +204,18 @@ %ul.sidebar-sub-level-items = nav_link(controller: [:environments, :clusters, :user, :gcp], html_options: { class: "fly-out-top-item" } ) do - = link_to project_environments_path(@project) do + = link_to operations_metrics_path(@project, @available_environment) do %strong.fly-out-top-item-name = _('Operations') %li.divider.fly-out-top-item - if project_nav_tab? :environments - = nav_link(controller: [:environments, :metrics]) do + = nav_link(controller: :environments, action: [:metrics, :empty]) do = link_to operations_metrics_path(@project, @available_environment), title: 'Metrics', class: 'shortcuts-environments' do %span = _('Metrics') - = nav_link(controller: :environments) do + = nav_link(controller: :environments, action: [:index, :folder, :show, :new, :edit, :create, :update, :stop, :terminal]) do = link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do %span = _('Environments') |