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 | ||||
| 
 | ||||
|   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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue