replaced one more helper with presenter

This commit is contained in:
Rydkin Maxim 2017-04-04 22:21:12 +03:00
parent c9806b47b8
commit 2d4fd769a7
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def pipeline
@pipeline ||= project.pipelines.find_by!(id: params[:id])
@pipeline ||= project.pipelines.find_by!(id: params[:id]).present(current_user: current_user)
end
def commit

View File

@ -1,6 +1,6 @@
.page-content-header
.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}
triggered #{time_ago_with_tooltip(@pipeline.created_at)}
- if @pipeline.user