diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-08 13:03:01 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-12 14:59:01 +0300 |
commit | feaf01802c092be8f55994c910f2975376cbd20f (patch) | |
tree | 66650ccffc461bc127ca45f176136798a4e6b6c4 /app/helpers/ci_status_helper.rb | |
parent | a83a80edb368d9b5697493123c2f13d8b7c6531e (diff) |
Remove ci_status_with_icon helper and replace it with partial [ci skip]
Diffstat (limited to 'app/helpers/ci_status_helper.rb')
-rw-r--r-- | app/helpers/ci_status_helper.rb | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb index 8e19752a8a1..d9f5e01f0dc 100644 --- a/app/helpers/ci_status_helper.rb +++ b/app/helpers/ci_status_helper.rb @@ -4,25 +4,7 @@ module CiStatusHelper builds_namespace_project_commit_path(project.namespace, project, pipeline.sha) end - def ci_status_with_icon(status, target = nil) - content = ci_icon_for_status(status) + ci_text_for_status(status) - klass = "ci-status ci-#{status}" - - if target - link_to content, target, class: klass - else - content_tag :span, content, class: klass - end - end - - def ci_text_for_status(status) - if detailed_status?(status) - status.text - else - status - end - end - + # Is used by Commit and Merge Request Widget def ci_label_for_status(status) if detailed_status?(status) return status.label |