BigW Consortium Gitlab

Commit b8f28628 by Rémy Coutable

Merge branch 'fix/remove-deprecated-ci-helper' into 'master'

Remove deprecated CI badge helper Closes #13446 See merge request !3977
parents 1c0aef44 0ea9e477
module CiBadgeHelper
def markdown_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
link = namespace_project_commits_path(project.namespace, project, ref)
"[![build status](#{url})](#{link})"
end
def html_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
link = namespace_project_commits_path(project.namespace, project, ref)
"<a href='#{link}'><img src='#{url}' /></a>"
end
end
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