debian-mirror-gitlab/app/views/projects/settings/ci_cd/_badge.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.1 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%div{ class: badge.title.gsub(' ', '-') }
2018-03-17 18:26:18 +05:30
.col-lg-12
%h4
2016-09-13 17:45:13 +05:30
= badge.title.capitalize
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, header_options: { class: 'gl-display-flex gl-align-items-center' }) do |c|
- c.header do
.gl-flex-grow-1
%b
= badge.title.capitalize
·
= badge.to_html
2023-05-27 22:25:52 +05:30
.js-ref-switcher-badge{ id: "js-project-ci-cd-ref-switcher-#{badge.title.parameterize(separator: '-') }", data: { project_id: @project.id, ref: @ref } }
2022-11-25 23:54:43 +05:30
- c.body do
2018-03-17 18:26:18 +05:30
.row
2021-04-17 20:07:23 +05:30
.col-md-2.gl-text-center
2018-03-17 18:26:18 +05:30
Markdown
.col-md-10.code.js-syntax-highlight
2021-01-03 14:25:43 +05:30
= highlight_badge('.md', badge.to_markdown, language: 'markdown')
2018-03-17 18:26:18 +05:30
.row
%hr
.row
2021-04-17 20:07:23 +05:30
.col-md-2.gl-text-center
2018-03-17 18:26:18 +05:30
HTML
.col-md-10.code.js-syntax-highlight
2021-01-03 14:25:43 +05:30
= highlight_badge('.html', badge.to_html, language: 'html')
2018-03-17 18:26:18 +05:30
.row
%hr
.row
2021-04-17 20:07:23 +05:30
.col-md-2.gl-text-center
2018-03-17 18:26:18 +05:30
AsciiDoc
.col-md-10.code.js-syntax-highlight
2021-01-03 14:25:43 +05:30
= highlight_badge('.adoc', badge.to_asciidoc)