diff options
author | Scott Hampton <shampton@gitlab.com> | 2019-02-26 14:10:24 -0700 |
---|---|---|
committer | Scott Hampton <shampton@gitlab.com> | 2019-02-26 14:10:24 -0700 |
commit | 40d15136352958206685197d4176f15781089849 (patch) | |
tree | a9f5dc43b3e13aaeb3ae9feca6833aa6e1eabbac /app/views/shared | |
parent | 2b51745394e8568cf91ce6ee95574f84fc38722e (diff) | |
download | gitlab-ce-40d15136352958206685197d4176f15781089849.tar.gz |
Adding ability to pass in path to status icon
Project passed a very specific details path. Also reverted a change.
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/projects/_project.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml index 2a38dce4896..8ff676c3cf8 100644 --- a/app/views/shared/projects/_project.html.haml +++ b/app/views/shared/projects/_project.html.haml @@ -84,7 +84,8 @@ = sprite_icon('issues', size: 14, css_class: 'append-right-4') = number_with_delimiter(project.open_issues_count) - if pipeline_status && can?(current_user, :read_cross_project) && project.pipeline_status.has_status? && can?(current_user, :read_build, project) + - pipeline_path = pipelines_project_commit_path(project.pipeline_status.project, project.pipeline_status.sha, ref: project.pipeline_status.ref) %span.icon-wrapper.pipeline-status - = render 'ci/status/icon', status: project.commit.last_pipeline.detailed_status(current_user), type: 'commit', tooltip_placement: 'top' + = render 'ci/status/icon', status: project.commit.last_pipeline.detailed_status(current_user), type: 'commit', tooltip_placement: 'top', path: pipeline_path .updated-note %span Updated #{updated_tooltip} |