Use pipeline permissions instead of build
This commit is contained in:
parent
3953e5fcd7
commit
86cedb0825
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue