replaced one more helper with presenter
This commit is contained in:
parent
c9806b47b8
commit
2d4fd769a7
|
|
@ -114,7 +114,7 @@ class Projects::PipelinesController < Projects::ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def pipeline
|
def pipeline
|
||||||
@pipeline ||= project.pipelines.find_by!(id: params[:id])
|
@pipeline ||= project.pipelines.find_by!(id: params[:id]).present(current_user: current_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit
|
def commit
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.page-content-header
|
.page-content-header
|
||||||
.header-main-content
|
.header-main-content
|
||||||
= render 'ci/status/badge', status: @pipeline.detailed_status(current_user), title: status_title(@pipeline)
|
= render 'ci/status/badge', status: @pipeline.detailed_status(current_user), title: @pipeline.status_title
|
||||||
%strong Pipeline ##{@pipeline.id}
|
%strong Pipeline ##{@pipeline.id}
|
||||||
triggered #{time_ago_with_tooltip(@pipeline.created_at)}
|
triggered #{time_ago_with_tooltip(@pipeline.created_at)}
|
||||||
- if @pipeline.user
|
- if @pipeline.user
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue