diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-21 02:31:04 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-21 02:31:04 +0530 |
commit | c4b109b2a453339a952814e6dd9521547eea40fe (patch) | |
tree | 1e12af8ec87bbd5b9ee9c6fda0096c7d7f6c9795 | |
parent | 6df2d57394a48ac0528af722a41c41bcbc8166b2 (diff) | |
download | gitlab-ce-c4b109b2a453339a952814e6dd9521547eea40fe.tar.gz |
Display the cycle analytics navbar based on the `:read_cycle_analytics` ability.
-rw-r--r-- | app/views/projects/pipelines/_head.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/pipelines/_head.html.haml b/app/views/projects/pipelines/_head.html.haml index a97674e84ba..5f571499e80 100644 --- a/app/views/projects/pipelines/_head.html.haml +++ b/app/views/projects/pipelines/_head.html.haml @@ -20,7 +20,7 @@ %span Environments - - if current_user + - if can?(current_user, :read_cycle_analytics, @project) = nav_link(controller: %w(cycle_analytics)) do = link_to project_cycle_analytics_path(@project), title: 'Cycle Analytics' do %span |