Remove deprecated ci status helper function
After changing all places that used the function, we can now remove it.
This commit is contained in:
parent
54a5d513e5
commit
52c910eeca
|
@ -123,12 +123,6 @@ module CiStatusHelper
|
||||||
icon_size: 24)
|
icon_size: 24)
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_pipeline_status(pipeline, tooltip_placement: 'left')
|
|
||||||
project = pipeline.project
|
|
||||||
path = project_pipeline_path(project, pipeline)
|
|
||||||
render_status_with_link('pipeline', pipeline.status, path, tooltip_placement: tooltip_placement)
|
|
||||||
end
|
|
||||||
|
|
||||||
def render_status_with_link(type, status, path = nil, tooltip_placement: 'left', cssclass: '', container: 'body', icon_size: 16)
|
def render_status_with_link(type, status, path = nil, tooltip_placement: 'left', cssclass: '', container: 'body', icon_size: 16)
|
||||||
klass = "ci-status-link ci-status-icon-#{status.dasherize} #{cssclass}"
|
klass = "ci-status-link ci-status-icon-#{status.dasherize} #{cssclass}"
|
||||||
title = "#{type.titleize}: #{ci_label_for_status(status)}"
|
title = "#{type.titleize}: #{ci_label_for_status(status)}"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'ci/status/_icon' do
|
describe 'ci/status/_icon' do
|
||||||
|
|
Loading…
Reference in New Issue