diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-10 02:41:18 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-10 02:41:18 +0300 |
commit | 86cedb082576ceca3522c33c10d367d765e02cf8 (patch) | |
tree | 81fdd5c763c1e7cc71ae0698a3e0f28259b5751e /app/views | |
parent | 3953e5fcd7060e77405327e670f92ebd7d0ee5a0 (diff) | |
download | gitlab-ce-86cedb082576ceca3522c33c10d367d765e02cf8.tar.gz |
Use pipeline permissions instead of build
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/commit/_ci_commit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/pipelines/index.html.haml | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/commit/_ci_commit.html.haml b/app/views/projects/commit/_ci_commit.html.haml index c8443763613..0ff679d0e3d 100644 --- a/app/views/projects/commit/_ci_commit.html.haml +++ b/app/views/projects/commit/_ci_commit.html.haml @@ -1,6 +1,6 @@ .row-content-block.build-content.middle-block .pull-right - - if can?(current_user, :update_build, @project) + - if can?(current_user, :update_pipeline, @project) - if ci_commit.builds.latest.failed.any?(&:retryable?) = link_to "Retry failed", retry_namespace_project_pipeline_path(@project.namespace, @project, ci_commit.id), class: 'btn btn-grouped btn-primary', method: :post diff --git a/app/views/projects/pipelines/index.html.haml b/app/views/projects/pipelines/index.html.haml index 0e08753fd3b..d247ea445ea 100644 --- a/app/views/projects/pipelines/index.html.haml +++ b/app/views/projects/pipelines/index.html.haml @@ -29,7 +29,6 @@ = icon('plus') New - - if can?(current_user, :update_build, @project) - unless @repository.gitlab_ci_yml = link_to 'Get started with Pipelines', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info' @@ -54,7 +53,7 @@ .table-holder %table.table.builds %tbody - %th Pipeline ID + %th ID %th Commit - @pipelines.stages.each do |stage| %th |