Commit 2d4fd769 authored by Rydkin Maxim's avatar Rydkin Maxim

replaced one more helper with presenter

parent c9806b47
...@@ -114,7 +114,7 @@ class Projects::PipelinesController < Projects::ApplicationController ...@@ -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
......
.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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment